Does anyone know how to set a property from the body value.
I can't use .setProperty( "id" ).xpath...
The setProperty is being called in the middle of a route.
So, it needs to be something like this:
.setProperty ( "id", myExpresion )
So, I need to have an expression to extract a value from the body of the message. I need to use something like xpath or simple script in myExpression.
Thanks
.setProperty ( "id", xpath("//foo/@id") )
AFAIR Then you need to static import the xpath on the XPathBuilder class from the org.apaceh.camel.builder package.