B2B Integration 10.5 | 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.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.