Dear community,

I've following Blueprint DSL snippet inside Camel 3.0.0 ..

..

<log message="body class: ${body.class()}" />
<choice>
<when>
<simple>${body.class()} contains 'GroupedExchangeList'</simple>
<log message="inner condition" />
</when>
</choice>
..

The first log message is been written like ..

body class: class 
org.apache.camel.processor.aggregate.AbstractListAggregationStrategy$GroupedExchangeList

The simple condition should evaluate if the class name contains 
'GroupedExchangeList'. Nevertheless this doesn't work, the log message 'inner 
condition' ist not shown.

The change to

<simple>${body.class().toString()} contains 'GroupedExchangeList'</simple>

did the trick. When do I need to perform an explicit type conversion?

Best
- Gerald

Reply via email to