on 07-21-2009 3:12 AM
Hi All,
I have a requirement in graphical mapping that i have a two nodes in source side both are identical. Each node has corresponding sub elements. Target side i have node with subelements. Based on certain conditions like if one condition satisfies i need to map first node and its corresponding sub elements in source side to target side node and its subelemts. If second condition satisfies then i need to map second node in source and its subelements to the target node and its sub elements. If both conditions not satisfy then target node should not be populated.
Please let me know how to acheive this in graphical mapping.
Thanks in advance.
Regards,
Rajesh
otherwise go for udf which takes the input as your values and checks the condition in the udf and based on that value map the result to target node
string empty=;
if ( NODEAelement.equals("A"))
return A;
else if (NODEBelement.equals("B"))
return B
else
return empty;
I just provided the logic, you can procced with this...
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the condition using standard functions like equals or equalsA (if Value is Airthmetic). If returns true, map with source Node to Target Node using "IfWithoputElse" function. Attriibutes are mapped to normal one to one.
Hope it helps.
Regards
Vijaykumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Select the target node that you want to generate conditionally in Message Mapping, rt click -> duplicate subtree. Now you have 2 identical nodes in your target xsd. Now conditionally map the first source node to the first target node and then conditionally map the second source node to the duplicated target node.
This way you can selectively generate target node, hope it helps.
Thanks
Saravana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.