on 03-01-2007 3:57 PM
Hi all,
I have a simple mapping requirement below:
Source Structure:
<ns0:MT_RON1 xmlns:ns0="urn:fapl:ron:test:ns1">
<name>name</name>
<address/>
<option1/>
<contactInfo>
<addr_seq>002</addr_seq>
<phone>a</phone>
</contactInfo>
<contactInfo>
<addr_seq>001</addr_seq>
<phone>a</phone>
</contactInfo>
</ns0:MT_RON1>
Occurence Info:
<name>: 1
<address>: 0..1
<contactInfo> 0..Unbounded
<addr_seq>: 0..1
<phone>: 0..1
My requirement is if <contactInfo\addr_seq = 001, map <phone> to a target node.
In java this is achieved by a simple looping through the elements in <contactInfo> and check if <addr_seq> == 001 and <addr_seq> exists, and mapping the phone number.
How can I achieve the same in the message mapping using the functions available in XI?
Please help.
Thanks.
Ron
Hi Wee,
take addr_seq ....right click it....select context...select MT_RON1....
make a constant 002.....
select addr_seq and a constant 002.....send them to equalS function .....send this to ifthen......send phone to then in ifthen.....send output to target node.
Thnks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA
Message was edited by:
RAJEEV GUPTA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.