As per the scenario, you need to split the node in Data mapper dynamically on the basis of the field value that you are getting from input message.
Example: In the input XML, you are getting <dept>10</dept>, now you have to divide the target node in mapper 10 times and each time this value will be different.
Please follow the below steps to achieve the desired outcomes.
- Create a variable In the Data mapping that will be dynamically changed.
- Define the mapping rule inside ForEach on the target node.