Atmaram
Atmaram

Reputation: 162

Choice in Mule Flow

I am trying to divide my flow according to the data present in the Map, which is formed after using Mule Transformer XMLMapper And XML to Map..

I have already tried many ways.. One of them present in Mule site was..

 <choice>
 <when expression="#[message.payload['interface_id'] == 'BK131108.1655.000698']" evaluator="map-payload">
     <processor-chain doc:name="Processor Chain">
  </when>
 </choice>

But this also won't work. Any Help???

Upvotes: 0

Views: 117

Answers (1)

David Dossot
David Dossot

Reputation: 33413

Remove:

evaluator="map-payload"

You are forcing the use of the old expression evaluation framework while providing a MEL expression.

After removing it, and if the message payload is a map that contains the "interface_id" key, then the expression should work.

Upvotes: 1

Related Questions