Problem: One name can have multiple credit cards (as Source) and I want to generate summary of customer (as in Target) as well as total summary of all customer as report in summary tag.
Message Mapping:Example of source and traget structure.
First mape source NAME to target CUSTOMERANME.
target CARDCOUNT mapped to source CREDITCARD including the standard function count. Also change the context to records of CREDITCARD.
target CARDTOTALPAYMENT mapped with source PAYMENT including standard function sum.
Target TOTAL CARD mapped to source CREDIT CARD node with count function.
Target TOTAL PAYMENT mapped with source PAYMENT including standard function sum.
And here the output: