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
=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
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