On Thu, Mar 27, 2014 at 10:06 PM, bonnahu <[email protected]> wrote: > hey guys, does anyone know if the simple expression support operator > precedence by using parenthesis? > Basically, I want to do something like this: > > <simple>(${in.headers.h_event} == 'A' and > ${in.headers.h_state} == 'AA') > or > (${in.headers.h_event} == 'B' > and ${in.headers.h_state} == 'BB' ) > </simple> >
That is currently not supported. There is a JIRA ticket to support that in the future. You can use any of the other languages such as groovy / mvel / ognl / javascript etc that would support it http://camel.apache.org/languages > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Does-simple-expression-support-operator-precedence-by-using-parenthesis-or-bracket-tp5749448.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
