Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Building Flow Services | The LOOP Step | Collecting Output from a LOOP Step
 
Collecting Output from a LOOP Step
If your LOOP step produces an output variable, the server can collect that output into an array in the pipeline.
To do this, you use the Output array parameter to specify the name of the array variable into which you want the server to collect output for each iteration of the loop. For example, if your loop checks inventory status of each line item in a purchase order and produces a String called InventoryStatus each time it executes, you would specify InventoryStatus as the value of Output array. At run time, the server will automatically transform InventoryStatus to an array variable that contains the output from each iteration of the loop.
To collect output from each pass of the loop, specify the name of the output variable that you want the server to collect for each iteration.
Note:
An EXIT step configured to exit a LOOP step or an iteration of a LOOP step affects the contents of the output array. For more information, see Exiting from Iterations, Steps, or Services.