xml spy
Previous  Top  Next

Global Resources - Application workflow


The aim of this section is to create a workflow situation between two Altova applications. Workflow is initiated in XMLSpy which starts MapForce and passes the generated XML file output back to XMLSpy for further processing.

 

This mapping uses two output components to produce two types of filtered output; Travel and Non-travel expenses of the expense report input file. This section uses the Tut-ExpReport-multi.mfd mapping file available in the C:\Documents and Settings\<username>\My Documents\Altova\MapForce2008\MapForceExamples\Tutorial\ folder.

 

gl-multi1

 

1.Click the Global Resource icon ic-globrec to open the dialog box.
2.Click the Add button and select File from the popup.
3.Enter the name of the Resource alias e.g. MultiOutput2Spy
4.Click the "Result of MapForce Transformation" radio button and select the Tut-ExpReport-multi.mfd mapping.

 

       gl-multi1a

 

MapForce analyzes the mapping and displays the input and output files in separate list boxes. Placing the mouse cursor over a path, displays the full path (and file name) in a tooltip.

 

       gl-multi2

 

5.Click the top radio button entry in the Outputs section, if not already selected.

Note that the output file name is ExpReport-Target.xml and that we are currently defining the Default configuration.

6.Click the "Save as" icon ic-gl-saveas to define the new location of the output file, and select Browse... from the popup menu.

 

       gl-multi2a

 

7.Enter the new output location e.g. C:\Temp. This location can differ from the location defined in the component settings.
8.Click the Add button glob-addic of the Configurations group, to add a new configuration to the resource alias.
9.Enter the name of the configuration, e.g. Output2, and click the lower radio button of the Outputs listbox. Note that the output file name is SecondXML.xml.

 

       gl-multi3

 

10.Click the "Save as" icon ic-gl-saveas to define the new location of the output file e.g. C:\Temp.

 

Note: clicking the "Choose another Global Resource... in the popup, allows you to save the MapForce output as a global resource. I.e. the output is stored to a file that the global resource physically points to/references.

 

       gl-multi4

 

11.Click OK to save the new global resources.

The new resource alias MultiOutput2Spy has been added to the Global Resources definition file.

 

       gl-multi5

 

12.Click OK to complete the definition phase.

 


Previous  Top  Next

© 2008 Altova