Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > mapper - multiple loops to a single destination




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

Rick is offline     mapper - multiple loops to a single destination  
Rick


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for Rick Find more posts by Rick Add Rick to your buddy list
 
01-04-05 08:08 PM

Hi,
I am trying to find a way in the BizTalk 2004 mapper to do multiple loops fr
om different groups of source nodes and then conditionally map certain child
 nodes - all to the same destination node group in the destination schema.  

In other words - in my source schema I have lots of source nodes, some that 
occur once, and some that occur multiple times. In my destination schema, I 
have a node with many children.

The problem that I have is how to: (for each group of nodes in the destinati
on schema), loop through a group of nodes, and find the record where a speci
fic child node's value meets a condition, and then map one of it's sibling n
ode's values to its destination. Also, there are many, many mappings to be d
one like this within the same node group. 


Note that I can do this kind of thing if there is only one looping and one c
ondition, but when I try to map multiple looping functoids (each with multip
le conditions) to a single destination, I cannot find any success. (this is 
obviously the part where i am mapper challenged!)


this sample input and output xml tries to illustrate the problem: 

<SourceInput>
 <Group1>
  <Node>
   <A>Not TheOne</A> 
   <B /> 
  </Node>
  <Node>
   <A>TheOne</A> 
   <B>Because the value of sibling node A is 'TheOne', map this node t
o the Destination node that is named 'TheOneForB'</B> 
  </Node>
 </Group1>
 <Group2>
  <Node>
   <C>AnotherOne</C> 
   <D>Because the value of sibling node C is 'AnotherOne', map this no
de to the Destination node that is named 'TheOneForD'</D> 
  </Node>
  <Node>
   <C>Not AnotherOne</C> 
   <D /> 
  </Node>
 </Group2>
</SourceInput>

 <DestinationOutput>
  <TheOneForB>data from the B node from Group1 where B node's sibling 
node A has value 'TheOne'</TheOneForB> 
  <second /> 
  <TheOneForD>data from the D node from Group2 where D node's sibling 
node C has value 'AnotherOne'</TheOneForD> 
  <fourth /> 
  <fifth /> 
 </DestinationOutput>




[ Post a follow-up to this message ]



    RE: mapper - multiple loops to a single destination  
KalyanT


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-06-05 10:53 PM

Hi Rick,
I too had similar problem, but was able to solve once I updated my
output schema. Check your output schema if it supports multiple loops
(MaxOccur=unbounded).

"Rick" wrote:

>
> Hi,
> I am trying to find a way in the BizTalk 2004 mapper to do multiple
> loops from different groups of source nodes and then conditionally map
> certain child nodes - all to the same destination node group in the
> destination schema.
>
> In other words - in my source schema I have lots of source nodes, some
> that occur once, and some that occur multiple times. In my destination
> schema, I have a node with many children.
>
> The problem that I have is how to: (for each group of nodes in the
> destination schema), loop through a group of nodes, and find the record
> where a specific child node's value meets a condition, and then map one
> of it's sibling node's values to its destination. Also, there are many,
> many mappings to be done like this within the same node group.
>
>
> Note that I can do this kind of thing if there is only one looping and
> one condition, but when I try to map multiple looping functoids (each
> with multiple conditions) to a single destination, I cannot find any
> success. (this is obviously the part where i am mapper challenged!)
>
>
> this sample input and output xml tries to illustrate the problem:
>
> <SourceInput>
> <Group1>
> <Node>
> <A>Not TheOne</A>
> <B />
> </Node>
> <Node>
> <A>TheOne</A>
> <B>Because the value of sibling node A is 'TheOne', map this
> node to the Destination node that is named 'TheOneForB'</B>
> </Node>
> </Group1>
> <Group2>
> <Node>
> <C>AnotherOne</C>
> <D>Because the value of sibling node C is 'AnotherOne', map
> this node to the Destination node that is named 'TheOneForD'</D>
>
> </Node>
> <Node>
> <C>Not AnotherOne</C>
> <D />
> </Node>
> </Group2>
> </SourceInput>
>
> <DestinationOutput>
> <TheOneForB>data from the B node from Group1 where B node's
> sibling node A has value 'TheOne'</TheOneForB>
> <second />
> <TheOneForD>data from the D node from Group2 where D node's
> sibling node C has value 'AnotherOne'</TheOneForD>
> <fourth />
> <fifth />
> </DestinationOutput>
>
>
>
> --
> Rick
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message863216.html
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:53 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register