Re: how to check a property inside of a exchange property

2018-02-23 Thread Quinn Stevenson
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

how to check a property inside of a exchange property

2018-02-23 Thread christian.jacob
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