You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by contactreji <co...@gmail.com> on 2014/12/04 09:58:17 UTC
Camel CBR using OGNL
Hi
I am receiving data into CXF endpoint using dataFormat=POJO.
I want to do some routing based on the value of object member. Suppose i get
the object of class Order which as a member called currency, how can i write
CBR to route this based on the currency.
I am wondering if something like following can be written. If so whats the
syntax. On internet, the CBR documentation contains examples with Xpath
alone.
<choice>
<when>
<simple>${body.currency}</simple> = 'bar'
<to uri="direct:b" />
</when>
<otherwise>
<to uri="direct:d" />
</otherwise>
</choice>
Cheers
Reji
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-CBR-using-OGNL-tp5760129.html
Sent from the Camel - Users mailing list archive at Nabble.com.