Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Java DSL: Resolving property within a choice

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

Viewing all articles
Browse latest Browse all 5648

Trending Articles