I have input xml with multiple orders, each order having multiple order lines. I need to map this to output having different element names.
I have two loops (orders and items inside orders) I am using appendToDocList for each loop. But my final output has only last order and my all my previous orders are wiped out.
You are using the appendtoDocumentList in a wrong way …
When you call this service… map the target o/p list to “toList” pararms, and map the output toList to again to same target o/p list…
Don’t forget the drop toList after this step from pipeline…
Please refer to the documentation for more on this service…