on 01-16-2008 4:22 PM
Hi,
Imagine the following scenario:
I have one source message type with this structure:
<p1:MT_Out>
<field1>999999</field1>
<field2>20080116</field2>
<documents>
<document>
<field3>PDF</field3>
<field4>111</field4>
</document>
</documents>
<documents>
<document>
<field3>TXT</field3>
<field4>222</field4>
</document>
</documents>
</p1:MT_Out>
and from that source message I want to generate two other messages like this:
Message1:
<p1:MT_In>
<field1>999999</field1>
<field2>20080116</field2>
<field3>PDF</field3>
<field4>111</field4>
</p1:MT_In>
Message2:
<p1:MT_In>
<field1>999999</field1>
<field2>20080116</field2>
<field3>TXT</field3>
<field4>222</field4>
</p1:MT_In>
Which is the best way to do this?
Thanks
Pedro Leal
Pedro,
As Aamir suggested you need to do with Multimapping. If you want the logic, then see the below ex's .
http://www.flickr.com/photo_zoom.gne?id=2197140231&size=o
http://www.flickr.com/photo_zoom.gne?id=2197140233&size=o
http://www.flickr.com/photo_zoom.gne?id=2197140237&size=o
http://www.flickr.com/photo_zoom.gne?id=2197140239&size=o
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is your solution
I assume the target message would be generated on the basis of <documents> segment. that is the number of target message would determined on the basis of number of <documents> segment in the source structure...
<p1:MT_In>
<field1>(1 arg)
<document>(2 arg)
<document>(3 arg)--
><field1>(target field)
<field2>(1 arg)
<document>(2 arg)
<document>(3 arg)--
<field3>----
></field3>
<field4>----
></field4>
</p1:MT_In>
Try this, if have any problem , feel free to revert back..
Regards/.
Jeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
May be you can try NodeFunction UseOneAsMany.
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
The above link has a good description about this NodeFunction.
If it is applicable to your requirements,you can use it and see.
Regards,
Manjusha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
you can use multimapping for this
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.