camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bari <barid200...@yahoo.com>
Subject Re: .choice(), .when() not working as expected in the camel route
Date Thu, 12 May 2016 07:43:48 GMT
Replace:
.when(body().isEqualTo("Error decoding
HL7")).to('direct:failure').endChoice() 
                                .otherwise().to('direct:success'); 

by:
.when(body().isEqualTo("Error decoding HL7")).to('direct:failure') 
                               
.otherwise().to('direct:success').endChoice(); 



--
View this message in context: http://camel.465427.n5.nabble.com/choice-when-not-working-as-expected-in-the-camel-route-tp5782452p5782471.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message