cancel
Showing results for 
Search instead for 
Did you mean: 

about receiver determination. a message contains multiple records

Former Member
0 Kudos

there is a message which contains multiple records.

how to make receiver determination for the scenario.

like:

<root>

<orders>

<order>

<id>1<id/>

<adress>A<adress/>

<order/>

<order>

<id>2<id/>

<adress>B<adress/>

<order/>

<order>

<id>3<id/>

<adress>C<adress/>

<order/>

<order>

<id>4<id/>

<adress>D<adress/>

<order/>

<order>

<id>5<id/>

<adress>E<adress/>

<order/>

<orders>

<items>

<item>

<orderID>1<orderID>

<productName>car<productName>

<item/>

<item>

<orderID>1<orderID>

<productName>computer<productName>

<item/>

<item>

<orderID>2<orderID>

<productName>apple<productName>

<item/>

<item>

<orderID>3<orderID>

<productName>shoe<productName>

<item/>

<item>

<orderID>4<orderID>

<productName>cup<productName>

<item/>

<item>

<orderID>4<orderID>

<productName>car<productName>

<item/>

<item>

<orderID>5<orderID>

<productName>book<productName>

<item/>

<item>

<orderID>5<orderID>

<productName>pen<productName>

<item/>

<items>

<root/>

i wanna make receiver determination.

if <adress> is A, forwards corresponding order which includes both <order> and <item> to receiver A.

if <adress> is B, forwards corresponding order which includes both <order> and <item> to receiver B.

..

..

..

i don't know how to make receiver determination?

Edited by: joy zheng on Aug 29, 2009 6:03 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

In my opinion it will be not pssible because when you will do the receiver determination, your payload will go as a whole to all receiver for whom your conditions are true. You cannot separate the payload based on RD conditions.

Regards,

Sarvesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi again,

I think what you can do is, just create different mappings based on number of receivers and accordingly create different Interface mappings for your corresponding message mappings. While doing your mapping use the conditions to map only desired data. Now in your configuration do your RD and add all your receivers without any condition. Remember your Interface Determination should contain the corresponding interface mappings.

I hope it helps..

Regards,

Sarvesh

Former Member
0 Kudos
I think what you can do is, just create different mappings based on number of receivers and accordingly create different Interface mappings for your corresponding message mappings. While doing your mapping use the conditions to map only desired data. Now in your configuration do your RD and add all your receivers without any condition. Remember your Interface Determination should contain the corresponding interface mappings.

if do that as you described.

identic message need to be sent multiple times.

that is not my expectation.

it is only way to use bpm.

Edited by: joy zheng on Aug 31, 2009 5:14 AM

Former Member
0 Kudos

It seems you need Header Mapping.

There is an option there.

Try that.

Regards.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

First Create data type with 1 to unbounded occurace for order and item.

Then check condition in mapping level only, bcz your receiver is same.

check condition for if adress is A then do mapping accordingly.

cheers,

Raj

0 Kudos

sorry,i dont understand your reply.

can you make a example in detail?