cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Question

Former Member
0 Kudos

Hello,

I need some help for a message mapping.

In the source message is one element named options.

The value of this field is semicolon and bracket/comma separated value. e.g. skip;ignore;retry(1,2,3).

Each one of the semicolon separated values should be a own element in the target message. If one option has values in the brackets, this options should get some child's. For example:

<options>skip;ignore;retry(1,2,3)</options>

should be

<options>

<option value='skip'/>

<option value='ignore'/>

<option value='retry'>

<choices>

<choice>1</choice>

<choice>2</choice>

<choice>3</choice>

<choices>

</option>

</options>

Is it possible, to produce such message with the message editor?

Thanks and regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Yes, it is possible.

Advanced user-function will be required. You will need to do context manipulations to achieve this.

Bill

Answers (3)

Answers (3)

Former Member
0 Kudos

I had the exact same problem. Here is a weblog on how to solve it:

/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi

Former Member
0 Kudos

Dan, I was searching for examples to help with a similar issue and found this blog. The responses in the blog indicate that it is possible to map your example, but would require user defined functions. However, the responses did not give any examples. Do you by chance have an example solution that I could review.

former_member185751
Contributor
0 Kudos

Hi Daniel,

Yes, its possible to produce such a message.But Have you defined message interface for the target structure described in your post?

You may need to write some user-defined functions / use susbstring operation to achieve what you need.

Regards,

Sridhar