Conditional processing in Spring DSL

2010-12-07 Thread Andy Bourke
.nabble.com/Conditional-processing-in-Spring-DSL-tp3295646p3295646.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Conditional processing in Spring DSL

2010-12-07 Thread Claus Straube
Hi Andy, try this: from(direct:map) .choice() .when(simple(${body.size} == 0)) .to(mock:null) .otherwise() .to(mock:notnull); Best regards - Claus On 07.12.2010 13:04, Andy