cancel
Showing results for 
Search instead for 
Did you mean: 

Simple message mapping question

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Rajeev.

You've resolved my problem!

points awarded!

Do you mind if you can point me to a blog or resource which can get me familiarized with the node functions and good examples on how to use them?

Thanks.

Ron

Former Member
0 Kudos

Hi Ron,

The following link may help you.

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Thanks,

Ram

Answers (0)