Hi, you may try building the predicat by simple language:
.when(simple("${property.input.format} == 'test'"))
compare to http://camel.apache.org/simple.html
regards, marco
Am 16.03.2012 15:53, schrieb Thibault:
Hi all,
I have this DSL route definition:
from("seda:InTransform")
.choice()
.when(property("input.format").isEqualsTo("test"))
.to("jbi:endpoint:MyService:MyEndpoint")
.otherwise()
.to("jbi:endpoint:AnotherService:AnotherEndpoint");
(I want to test a value that i have already set as "input.format" property)
The DSL compiles, but when I show the route on Karaf (camel:show-route), it
only displays this:
(...)
<choice>
<when>
<expressionDefinition />
<to uri="jbi:endpoint:MyService:MyEndpoint" id="to3"/>
</when>
<otherwise>
(...)
</otherwise>
</choice>
(...)
Why doesn't the predicate on the property "input.format" appear in the route
? Did I write something wrong ?
Regards,
Thibault
--
View this message in context:
http://camel.465427.n5.nabble.com/Choice-When-always-generate-empty-predicate-tp5571443p5571443.html
Sent from the Camel - Users mailing list archive at Nabble.com.