As you are already using the java dsl: use a bean or write a processor that 
does exactly what you want. Then use that.
As body could be anything (Object) I would find it challenging to implement 
this in simple language (what´s a random object?).You probably only want this 
for numbers (most probably: integers).

Cheers, Thomas.

> Am 26.01.2016 um 08:55 schrieb Ravi Nallappan <ravi.nallap...@gmail.com>:
> 
> Hi,
> 
> 
> 
> Is it possible to make this function work based on content?
> 
> 
> 
> i.e 
> 
> .setBody(simple("random(${body})"))
> 
> 
> 
> 
> 
> Thanks and regards,
> 
> Ravi Nallappan
> 

Reply via email to