camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Set value on a body attribute
Date Thu, 28 May 2015 18:10:12 GMT

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

On Wed, May 27, 2015 at 4:08 PM, Pred05
<> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message