Hello Team,

I have a Pojo in my exchange, and the pojo has a List<Errors> that may be
empty or may have 0..* errors. I would like to create a .choice() based upon
the size of the errors list. Is this possible? I see that I can use header
and body in the choice, but not sure if the pojo will work. Can someone
chime in on this?


Something like this:
                .when(body().isErrors().size() < 1))

View this message in context: 
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to