Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Mapping – Inner loop › Re: Mapping – Inner loop
Just found a solution to the problem I was having, in case any others have a similar problem.
You need to set up a conditional loop to get the information. To accomplish this, use the looping functoid over the element you are getting the information from. In the example above, loop over the name element because if there is not a name, then really the person doesn’t exist. You could on the other hand have a name without a DoB, that’s why you loop over name. So now you should have a loop over the name working properly with the correct number of names in the source. The tricky part is getting the other details and dob.
To accomplish this part, you need to set up a condition. So, if name exists, then map the information from dob and OtherPersonalDetails. Pull the “logical existence funtoid” and place on the grid. Draw a line from the name record to the existance functoid. Now drag as many “value mapping” functoids as you need. Lets say there are 2 personal details: eye color and hair color. And you need dob, so you will need 3 value mapping functoids. Place these funcoids just to the right of your logical existence. Draw a line from the logical existence to each of the value mapping funcoids. Next, draw the line from your element in the source to the corresponding value mapping functoid. Finally, draw your lines from the value mapping functoids to your destination.
I hope this helps. If there are any questions, please post a reply. I should be notified and I’ll see if I can help in any way.