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.
