Lists
References to variables in the variable pool may be indexed. In this way, variable lists may be created. The lists may, in turn, be processed iteratively using a Loop Processing Directive.
For example, the FTP_INBOUND shipped Activity defines an output parameter FILEPATH which contains a list of the paths and file names of all files retrieved in the FTP operation. The Activity Processor is written to make indexed references to the &FILEPATH variable in order to build up the list. The entire list of FILEPATHs is then available to subsequent Activities and Processing Directives using indexed references to the &FILEPATH variable.
The Processing Sequence example shown below uses the FTP_INBOUND Activity and then executes a Transformation Map in a loop for each file received.
Any variable may be used as a list simply by indexing references to it. However, Activity parameters may be explicitly flagged as being lists and will be represented by a different icon in the
tab in the .Indexed references to variables should use contiguous indices starting from 1. The Loop Directive and the supplied Activities will only process instances that meet this condition.