B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Service Development Help | Mapping Data in Flow Services | Mapping Using ForEach | Creating a ForEach Mapping
 
Creating a ForEach Mapping
Consider the following when you build a ForEach mapping:
*You can only map an input array to an output array of the same data type.
*ForEach mapping iterates over an input array and executes the defined mappings.
*You can perform all the mapping tasks, transformations, and create nested array mapping in a ForEach mapping.
*You can map a single input array to multiple output arrays and multiple input arrays to a single output array.
* To build a ForEach mapping
1. In the flow service editor, select the MAP step.
2. Open the Pipeline view.
3. In Pipeline In, click the pipeline array variable you want to use as the source variable and in Pipeline Out, click the pipeline array variable you want to use as the target variable.
4. Click .
The ForEach mapping is established between the source and target arrays.
5. On the Pipeline view of the ForEach mapping, click .
The Pipeline view of the selected ForEach mapping appears.
6. In the Pipeline view ForEach mapping, add the required mapping tasks, transformations, or nested mapping.
7. Use to go to the Pipeline view of the parent ForEach, in case of nested ForEach mapping.
8. Use to close the ForEach mapping Pipeline view.
9. Click File > Save .

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.
Innovation Release