if I have a property

     foo=bar

And I want to use it within a choice(), this works (i.e., resolves to true)

     .choice()
          .when(simple("${properties:foo} == 'bar'"))

but this does NOT work (i.e., does not resolve to true)
     
     .choice()
          .when(property("foo").isEqualTo("bar"))

The latter is more intuitive but doesn't work. Why? Am I doing something
wrong? Is this a bug? 

I am using Camel 2.12.2.





--
View this message in context: 
http://camel.465427.n5.nabble.com/Java-DSL-Resolving-property-within-a-choice-tp5748020.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to