Sample of GetFragment Activity
The GetFragment activity is designed to iterate through the XML fragments one by one. This activity is designed to run with the Loop Group activity to allow iterating through all the XML fragments. In this sample, the GetFragment activity splits the XML file into fragments depending on Fragment Criteria. The file names used in this sample are specified in module property.
Prerequisites
Before executing the project, set the module property LargeXML_Root to the location of the plug-in samples folder. For example, if the plug-in samples are available in $TIBCO_HOME/bw/palettes/lx/<version>/samples, set LargeXML_Root to $TIBCO_HOME/bw/palettes/lx/<version>/samples. The rest of the input and output paths are configured using this module property.
Procedure
- In the samples directory, select <TIBCO HOME> bw > palettes > lx > <version> > samples and double-click tibco.bw.sample.palette.bwlx.LargeXMLPluginSample.
- In Project Explorer, expand the tibco.bw.sample.palette.bwlx.LargeXMLPluginSample project.
- Set the default ApplicationProfile to match your operating system.
- Fully expand the Processes directory and double-click name XMLGetFragment.bwp. In Module Descriptors > Components, you can see XMLGetFragment.bwp.
- Click Run > Debug Configurations.
- In the left tree of the Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click Deselect All if you have multiple applications. Select the check box next to tibco.bw.sample.palette.bwlx.LargeXMLPluginSample.application.
- Click Debug. This runs the sample in the Debug mode.
-
Click the
Terminate
icon to stop the process.
