on 07-21-2009 11:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep ,
Your requirment is not clear , can you please explain a little more
Regards,
B.Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.