Step 1. Set up a Loop to Cycle through the List of xml Files
LIC004 - Add the Transformation to the Processing Sequence
1. Navigate to
and select the you created in tutorial LIC0002 – .2. Press the
button to create a new processing sequence based on this one:
3. Give the new processing sequence an
of iiiTUTSEQ02 and click the button.
When the details for your copied iiiTUTSEQ02 are shown, give the new processing sequence an appropriate description as shown:
4. Save the change to your new processing sequence.
5. Click the DIRECTORY_LIST. The will output a list of files in a list named FILELIST.
button to open the Processing sequence editor window. Delete the activity TUT_02_AT from the previous exercise, so that your sequence contains a single Activity6. Select the
tab and delete the YOURINITIALS input parameter.7. From the
tab select the construct and add it to the sequence . Your sequence will now contain the Activity and then Loop. Note that the tab (bottom left) shows errors (red triangle) and warnings (yellow triangle). This is because the details for the Loop have yet to be entered.If your Loop is in the wrong place use the
and buttons on the toolbar to reposition it.8. Select the
. The details of the loop will be shown (bottom right).a. In the
enter .b. In the FILELIST and the value of the entry which is currently being processed will be set in the variable named THISFILE. The variable THISFILE may be used as an input to subsequent processing steps within this loop.
enter This means that the loop will cycle through the list of entries in thec. In the FILECNT. The variable FILECNT will contain the number of the entry which is currently being processed.
enterNote that the previously displayed errors (red triangle) have gone, though a warning (yellow triangle) may remain about the loop item being empty - you will deal with this next.