Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Building Flow Services | The LOOP Step
 
The LOOP Step
 
Specifying the Input Array
Collecting Output from a LOOP Step
About the Pipeline for a LOOP Step
Building a LOOP Step
The LOOP step repeats a sequence of child steps once for each element in an array that you specify. For example, if your pipeline contains an array of purchase-order line items, you could use a LOOP step to process each line item in the array.
To specify the sequence of steps that make up the body of the loop (that is, the set of steps you want the LOOP to repeat), you indent those steps beneath the LOOP as shown in the following example.
Figure 45. Simple LOOP step
You may include any valid flow step within the body of a LOOP, including additional LOOP steps. The following example shows a pair of nested LOOPs. Note how the indentation of the steps determines the LOOP to which they belong.
Figure 46. Nested LOOP steps