Assume that a customer orders multiple items. The input XML will then contain all the item information. In this exercise, we shall separate the items and process them individually.
Step 1: Process a bulk message
-
Let us change our input message and add 2 more items to it.
<item>
<ProductID>RPD4044544</ProductID>
<ProductDescription>Keyboard</ProductDescription>
<Quantity>1</Quantity>
<ItemValue>1057</ItemValue>
</item>
<item>
<ProductID>RPD4044545</ProductID>
<ProductDescription>Webcam</ProductDescription>
<Quantity>1</Quantity>
<ItemValue>1057</ItemValue>
</item>
Once done, your message should look like:
-
Execute your flow with the new message. You will see that the output mail only contains 1 item information:
-
This is because the cardinality of the Item field is set to 1..1.
-
Edit the XSD.
- Go to the integration flow’s Resources View and delete both Order.xsd and WarehouseOrder.xsd.
- Go to the Message Mapping and reimport the edited XSD.
In spite of having deleted the XSD, SAP Cloud Platform Integration preserves the maps.
-
Check if all the maps are configured.
-
Save, deploy and execute your flow. You should get one composite mail containing all product information: