webMethods 10.2 | 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.

Copyright © 2017-2018 | 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.
Innovation Release