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.
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.