Skip to Content
0
Former Member
Jun 29, 2009 at 08:39 AM

How to split the messages in the mapping

11 Views

Hi Gurus,

I need to split the message into two XML message based on the value in the plant and sent it to two receivers.

How to do using Graphical mapping.

Im working in PI7.0. I dont know how to use the enhanced receiver determination. PL guide me.

This is my input message format

<ns0:Namespace>

<row>

<PlantCode>10<PlantCode>

<element1>

<element2>

<element3>

<row>

<row>

<PlantCode>40<PlantCode>

<element1>

<element2>

<element3>

<row>

<row>

<PlantCode>20<PlantCode>

<element1>

<element2>

<element3>

<row>

<row>

<PlantCode>50<PlantCode>

<element1>

<element2>

<element3>

<row>

<ns0:Namespace>

My output message should be

Message1

<row>

<PlantCode>10<PlantCode>

<element1>

<element2>

<element3>

<row>

<row>

<PlantCode>20<PlantCode>

<element1>

<element2>

<element3>

<row>

Message2

<row>

<PlantCode>40<PlantCode>

<element1>

<element2>

<element3>

<row>

<row>

<PlantCode>50<PlantCode>

<element1>

<element2>

<element3>

<row>

Based on the plant i have to split the message

1. If plant is 10 or 20 it has to go to message 1

2. If plant is 40 or 50 it has to go to message 2.

How to do...

Regards,

Rama