camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mail2bansi <>
Subject Re: Simple Expression With And Condition doesnt work in Camel 2.8
Date Wed, 12 Dec 2012 06:16:20 GMT
Thanks everyone for responding. But still it doesnt work. I am not sure if
the below expression is evaluated as it always call the route under first
expression even thought its false

Here is an example:
                    <simple>("${property.noun} contains 'Hello' and
${property.verb} contains 'World'")  </simple>

                    <to uri="direct://HelloWorldRequestStart"/>

                    <simple>("${property.noun} contains 'Hello' and
${property.verb} contains 'Camel'")  </simple>

                     <to uri="direct://HelloCamelRequestStart"/>


The Exchange property sets the following attributes: 
noun: Hello 
verb: camel

But it always calls <to uri="direct://HelloWorldRequestStart"/> instead of
<to uri="direct://HelloCamelRequestStart"/>
Not sure where i am going wrong


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message