I’m assuming the simple block you shared is for the when clause, but it doesn’t
have a comparison - did you miss something?
I put together a quick test that shows one way to do this
public class ScratchTest extends CamelTestSupport {
static final String SOURCE_URI = "direct://source";
static
Hi there,
I have an object of a class "Foo" in an exchange property named "the-foo". The
"Foo" class has an int property "counter" with a getter. In my route, I have to
check with a choice- and a when-clause if this counter is greater than zero,
then proceed with next step #1, otherwise proceed