camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mail2bansi <mail2ba...@gmail.com>
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:
<choice>
                <when>
                    <simple>("${property.noun} contains 'Hello' and
${property.verb} contains 'World'")  </simple>

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

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

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

                </when>
            </choice>

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

Regards,
Bansi





--
View this message in context: http://camel.465427.n5.nabble.com/Simple-Expression-With-And-Condition-doesnt-work-in-Camel-2-8-tp5723702p5723935.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message