cancel
Showing results for 
Search instead for 
Did you mean: 

Content based routing and XML with multiple objects

Former Member
0 Kudos

I have some structure:

<contracts>

<contract>

<department>1</department>

..

</contract>

<contract>

<department>1</department>

..

</contract>

...

<contract>

<department>2</department>

..

</contract>

</contracts>

I need to route contract to 2 system based on <department> value:

contracts/department = 1 --> System1

contracts/department = 2 --> System2

Will XI split my XML (based on Content Routing rules in ID) into 2 structures (with departmet=1 and department=2 accordingly) ?

Or I have to perform 1ToN mapping? I don't like it bacause it will be diffucult to monitor hundred of messages.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I feel message will go to the system where last condition is satisfied by your condition.

It will be not routed to 2 different systems. As the message is one , it will not be divided into 2 messages by Content Routing.

You have to send 2 messages for this diversion to work. For that you need 1:n mapping.

Hope it helps,

Regards,

Satish

Answers (1)

Answers (1)

STALANKI
Active Contributor
0 Kudos

Alternatively if you donot like 1:n mapping and BPM.

Create two message mappings in the IR

1.Source :<contracts>

<contract>

<department>1</department>

..

</contract>

<contract>

<department>1</department>

..

</contract>

...

<contract>

<department>2</department>

..

</contract>

</contracts>

Target:

<contracts>

<contract>

<department>1</department>

..

</contract>

<contract>

<department>1</department>

..

</contract>

Basically mapping generates a target structure which has only department 1.

2.Same like step1 but the mapping should generate the XML with department = 2.

Once requires steps are done in the ID , do the content based routing in the reciever determination and give the appropraite message mapping in the interface determination.

That should your problem and also you will like doing it as it does not involve any split level mapping..:)