Hai all!
Does anybody help me on mapping problem of lineitems to the UDM documentlist.
There are LineItem under OrderHeader LineItems are DocumentList has to map to the UDM documentlist of purcahseOrderLine , so i have taken loop to map documentlist lineitems to the UDM Documentlist, i have given input array as /PurchaseOrder/OrderLine and ouputarray as /UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine documentlist and in the loop i have taken map flowstep to map to the UDM document in loop flow step.After Loop Step Both /PurchaseOrder/OrderLine,UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrder has become document from documentlist in the map flow step.
I have done the mapping of OrderLine items to the UDM document items in the mapping flowstep.
Problem is in the first loop all the /PurchaseOrder/OrderLine items are mapping to the UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine correctly but in next loop /PurchaseOrder/OrderLine items values are overridding the mapping values of the first loop mapping.
Before Loop
/PurchaseOrder/OrderLine is a document list and /UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine is document list Before Loop
AfterLoop
/PurchaseOrder/OrderLine is a document and /UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine is document
If /PurchaseOrder/OrderLine having Two Array values Then,
After FirstLoop Mapping
/PurchaseOrder/OrderLine[0] are mapping to the /UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine[0].
After Second Loop
/PurchaseOrder/OrderLine[1] are mapping to the /UDM2.PurchaseOrder.ProcessPurchaseOrder.doc:ProcessPurchaseOrder/ProcessPurchaseOrder/DataArea/PurchaseOrder/PurchaseOrderLine[0].
How to Rectify Mapping problem,If anybody help me on this it is going to be a good favour to me…
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods