Hi ideally we would need a <script> in the dsl, so ppl can run groovy / mvel / javascript / or whatnot that just runs the script.
You can "do this" today using the language endpoint and set transform=false, and refer to a script in a script file on the classpath etc. Though there has a bit reluctant to include the <script> as people should maybe not code in xml. However from time to time it can be handy. On Wed, May 27, 2015 at 4:08 PM, Pred05 <[email protected]> wrote: > Ok thanks you, can you explain to me how ? i have try to replace the second > <simple> by : > <mvel>request.body.attribute1 = 10;</mvel> > > But it does't work because <simple> is already present. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Set-value-on-a-body-attribute-tp5767522p5767541.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/
