cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help required

former_member1275317
Participant
0 Kudos

Hi..

I need help on mapping..

<A> <A>

<A1/> <A1/>

<A2/> <A2/>

<A3/> <A3/>

<A/> <A4>....................0-unbounded

<B> <B1>

<B1/> <B2/>

<B2/> <B3>

<B3/> <B4/>

<B4/> <B5/>

</B> <B6>

<C> ..................

<C1/>

<C2/>

<C3/>

</C>

Here target side message first theree fields are constats..

<A4> should be mapped with <A>,<B>, or <C> only one Node occurs at a time (A,B,C) rest of them are balnk..

If A node occure need to mapp with <A4> as i said that only one node occurs at a time..

Please suggest me on this..

regards,

Deeps

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Can you give source and target XML formats......looking at your req i can suggest:

NodeA ---> Exists ---> CreateIf ---> targetNode

Same logic for node B and C...with corresponding source nodes

former_member1275317
Participant
0 Kudos

sorry this is the actual structure

<Msg1>

<Node1>

<A1>

<A2>

<A3>

<A4>

</Node1>

<Node2>

<B1>

<B2>

<B3>

</Node2>

<Node3>

<C1>

<C2>

<C3>

</Node3>

</Msg1>

<Msg2>

<A1>

<A2>

<A3>

<A4>0.......unbounded

<A5>

<A6>

<A7>

<A8>

<A9>

</Msg2>

regards,

Deeps

former_member1275317
Participant
0 Kudos

Msg1>

<Node1>

<A1>

<A2>

<A3>

<A4>

</Node1>

<Node2>

<B1>

<B2>

<B3>

</Node2>

<Node3>

<C1>

<C2>

<C3>

</Node3>

</Msg1>

<Msg2>

<A1>

<A2>

<A3>

<A4>0.......unbounded

<A5>

<A6>

<A7>

<A8>

<A9>

</Msg2>

In the above.. Source Message(Msg1) has three nodes Node1 Node2 Node3 .. these three should be mapped with <A4>NOde on the Target side..

Like Node1........<A4>0...unbounded

only one node contains data alwyas.. not all .. so at a given time need to map only only one node to <a4>

his is my requirement.. please suggest me on this..

Regards,

Deeps.

former_member200962
Active Contributor
0 Kudos

Right-Cilck A4 and say Duplicate...do it twice....so in all you have 3 A4 nodes

Now for each A4 node directly map Node1,2,3

So if the Node on source is not present then no A4 node will be created for that absent node

Check if this is what you are looking for.

Update:

Compare the fields present inside the Node1, 2, 3 with a blank constant and verify that the corresponding node is blank...if yes then do not create the target A4.....so that even if your Node2 is present but is blank you wont get the target instance for A4

Regards,

Abhishek.

Edited by: abhishek salvi on Jul 21, 2009 4:10 PM

Former Member
0 Kudos

Try this:

Duplicate A4 in traget struture using the context menu->Duplicate Subtree. So that you have three A4 in your target structure.

After that: map Node1 -


<Condition>----


>A4

Node2 -


<Condition>----


>A4

Node3 -


<Condition>----


>A4

Regards,

Shweta

former_member1275317
Participant
0 Kudos

Thank you Abhishek

Regards,

Deep.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

As for as my understanding abt ur scenario , the first 3 fields in the target are constant so u can map directly .

For the <A4> either A, B or C should come , so in the mapping sheet you may have the condition with you , else ask the mapping rule from the functional , so that based on the condition you can map the <A4> by using the IF .. ELSE node functions

Regards,

B.Jude

Former Member
0 Kudos

Hi Sandeep ,

Your requirment is not clear , can you please explain a little more

Regards,

B.Jude