cancel
Showing results for 
Search instead for 
Did you mean: 

Routing message content

Former Member
0 Kudos

Hi,

Look at the following xml message:

<message>

<a> 1 <\a>

<a> 2 <\a>

<a> 1 <\a>

<a> 2 <\a>

<\message>

I want to rout all lines where "a = 1" to output file "1.txt" and all lines where "a = 2" to "2.txt.".

I know it can be done by a "hard-coded" MM. yet, I want to enable max abstraction level and shift as mush as possible logic to the configuration phase.

Plz offer possible solutions?

Regards

Edited by: uri karagila on Aug 17, 2008 1:18 PM

Edited by: uri karagila on Aug 17, 2008 1:18 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

the best way to do this is to maintain the logic in the MM. So you have split message mapping one set of values goes to message 1 and the other goes to message 2,

then you maintain the conditions in the interface determination.