Re: Choice in a route template

2022-10-10 Thread ski n
en(simple("${header.foo} == 'cheese'")) > .to("direct:c") > .otherwise() > .to("direct:d"); > > I like to use such choice in a route template. The thing is that I don't > know how many > > when statement

RE: Choice in a route template

2022-10-10 Thread Nick Bryan
=direct:b cheese=direct:c otherwise=direct:d Nick -Original Message- From: ski n Sent: 10 October 2022 20:08 To: users@camel.apache.org Subject: Choice in a route template Consider the following route: from("direct:a") .choice() .when(simple("${head

Choice in a route template

2022-10-10 Thread ski n
Consider the following route: from("direct:a") .choice() .when(simple("${header.foo} == 'bar'")) .to("direct:b") .when(simple("${header.foo} == 'cheese'")) .to("direct:c") .ot