Adding a looped assignment mapping

A looped assignment mapping is a two-sided mapping from a non-repeatable source element to an [All] node on the target side. This type of mapping is useful if you want to map fixed input information to a number of instances on the target side. For example, a source message represents an order with a number of items, but a single field containing the name of the supplier. The target database requires the supplier name to be included with each item. The following steps show you how to create a looped assignment mapping.

  1. Create a single mapping from a non-repeatable source node to an [All] node on the target side using the drag-and-drop method. (Alternatively, select the source and target nodes to be mapped, right-click the target node, and select Create Looped Assignment Mapping from the pop-up menu.)
  2. In the dialog box that appears, specify the number of instances to which you want to map. The maximum number of instances to which you can map is the cardinality of the selected field.
  3. In the Message Flow Mapping editor Overview, click the Target Value that you want to edit and then click the box that appears on the right side of this value. The Compose Mapping Expression editor appears, showing the loop.
  4. Use the editor to provide the required information about the mapping.
  5. Click OK to close the Compose Mapping Expression editor.
  6. Save the mapping resource.

Related concepts
Repeating mappings
Aggregate mapping and unknown numbers of instances

Related tasks
Adding instances in repeating structures
Removing instances in repeating structures
Adding a repeating mapping
Adding an aggregate mapping
Adding a repeat-to-repeat throughput mapping
Adding a one-sided looped assignment mapping

Related reference
Mappings