Thanks!

It's exactly what I'm looking for.

Regards


On Mon, 2016-02-22 at 16:51 +0100, Claus Ibsen wrote:
> The simple language wasn't really intended for this, though you can
> use the script dsl
> http://camel.apache.org/script
> 
> Where you can use simple, groovy, mvel, etc for such an use-case.
> 
> 
> 
> 
> On Mon, Feb 22, 2016 at 4:05 PM, Alberto Brosich
> <abros...@ogs.trieste.it> wrote:
> > 
> > Hello,
> > 
> > I have to enrich a pojo using the value of an header.
> > I'm using a Processor but I'm wondering if there is a simpler
> > method.
> > 
> > using
> > 
> > .enrich.simple("${body.setAttribute(${header.HeaderName})}")
> > obviously
> > doesn't work because the setter returns null, not the pojo.
> > 
> > 
> > Regards
> > 
> > Alberto
> > 
> > 
> > 
> > 
> 
> 
> 

Reply via email to