Hi Not with simple. You would need to use mvel, groovy etc.
On Wed, May 27, 2015 at 10:56 AM, Pred05 <[email protected]> wrote: > Hi everybody, > i haven't find in google if it is possible to set a value on a body > attribute directly in camel. > > For example to do something like this : > > <route id="aRoute"> > <from uri="direct:aRoute"> > <choice> > <when> > <simple>${body.attribute0 == 5}</simple> > <simple>${body.attribute1 = 10}</simple> > <to uri="bean:doSomethingA?method=go"/> > </when> > <otherwise> > <simple>${body.attribute1 = 15}</simple> > <to uri="bean:doSomethingB?method=go"/> > </otherwise> > </choice> > </route> > > > Thanks for help! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Set-value-on-a-body-attribute-tp5767522.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 hawtio: http://hawt.io/ fabric8: http://fabric8.io/
