Batch Processing for generating MWB Reports in the Background

 

 

New MWB Command Line Parameters:

 

Added 3 new command line parameters.

 

 

New parameters:

 

/p=\path\profile.mwb    --            names an MWB profile to be loaded

/xp=\path\report.xml     --            names a file to contain the spec xml report

/xsl=\path\xsldoc.xsl   --            names an XSL doc to be applied against the spec xml report

 

 

/p use alone will simply load the named profile as if loaded from the file menu

 

/p in conjunction with /xp will load an existing profile and automatically generate the SpecXML report into the named report file.

 

/p, /xp and /xsl used in conjunction will cause the named xsl template to be applied to the SpecXML file, the result will be stored in the file named in the /xp parameter. Note that the file extension for the file named in /xp will be preserved, so ensure that it is appropriate for the transform applied.

 

/xp and /xsl have no meaning if /p is not provided. /xsl has no meaning if /xp is not provided.

 

When /xp or /xp in conjunction with /xsl are used, the MWB will run in the background, and exit as soon as the report is completed.

 

Recommended usage:

Create a batch file (*.bat) which invokes the MWB for several profiles. The XML reports will be generated in turn without the need to manually load each one. The contents of an example batch file are shown below:

 

msgwb /D /p=\projects\junk.mwb /xp=d:\temp\ajunk.xml /xsl="\lib\xsl spec\hl7_conformance_profile1.xsl"

msgwb /D /p=\projects\bigred.mwb /xp=d:\temp\abigred.html /xsl="\lib\xsl spec\hl7_conformance_profile1.xsl"

msgwb /D /p=\projects\wonder.mwb /xp=d:\temp\awonder.htm /xsl="\lib\xsl spec\hl7_conformance_profile1.xsl"

msgwb /D /p=\projects\bigred.mwb /xp=d:\temp\automwbrpt1.xml

msgwb /D /p=\projects\junk.mwb /xp=d:\temp\automwbrpt2.xml

msgwb /D /p=\projects\wonder.mwb /xp=d:\temp\automwbrpt3.xml

 

If the file containing these lines was named 'TRY.Bat', it could be executed from the Windows command line simple as TRY e.g. C:>Try<cr>

 

Note that in the 1st 3 invocations the result will be a translated profile. In the first instance the output report will be an xml file (which is actually inappropriate for the transform used). In the second 2 invocations the output will be to html files.

 

In the second 3 invocations the output will be XML result of the SpecXML Report.