I have to map Souce to Target Mapping
Source Structure
Header 1:M Detail (Detail is a loop inside Header Document)
Detail has 10 Line Item Type (program goes 10 times inside loop), based on this Line Item type I need to extract the $ amount (another field) at Detail level, sum up the $ amounts for all line items and then map it to header Level Total $ amount.
I know couple of options, store the $ amount in a 10 variables and them sum it up inside Detail loop 9 times using add built in service.
Write a java code to add the sum.
I am looking for the Best Practise recommended by webMethods.
Any suggestions!
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services