Posted: Fri Jul 04, 2008 8:54 am Post subject: Temporary Variables in Mapping node
Master
Joined: 19 Jun 2008 Posts: 297
I have an incoming message with an element that has an unbounded occurrence. From this message based on certain conditions on these elements, I need to generate the output message. The header of the output message must contain the number of elements that were created in the output.
1) I can only use the mapping node
2) The header must contain the number of records in the message
I know it can be done with two mapping nodes. But I am trying to see if it can be done with one mapping node and no calling esql or java from mapping.
The problem
1) How to fill the header record last although it appears first in the MRM ?
2) How can you use temporary variables (including localenvironment) as an counter to count the number of output items ?
I don't think that will work. count() will only work on the source - as you pointed out. I am not interested in the number of incoming "elem1" elements. I am interested in the count of outgoing "elem1" elements.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum