when(simple("${header.isoMap[3]} == '213000'"))

Use [key] to lookup the map entry when using simple

And study yourself the simple language some more before writing many emails.

And there is a bunch of unit tests which you can use as inspiration
https://github.com/apache/camel/blob/master/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java

On Thu, Jan 19, 2017 at 1:05 PM, santoshkeleti
<[email protected]> wrote:
> please excuse me bro,
>
> my map is {0=0200, 2=8000256072377943, 3=213000, 102=002028003453,
> 4=000000900000, 7=201117140654, 60=2013201320132013, 50=000, 41=80002523}
>
> i wrote the expression as follows,
>
> when(simple("${header[isoMap].get(\"3\")} == '213000'"))
>
> but it is not working.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-read-header-of-type-java-Map-in-choice-block-tp5792774p5792801.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to