Search code examples
jbossapache-camel

Apache Camel - Definition has no children on Aggregate


I am trying to implement an aggregate on Apache Camel (Version: 2.18.0) with the following route:

<route id="AggregateExtraRoute">
    <from uri="direct:AggregateExtraRoute"/>
        <aggregate strategyRef="CustomAggregationStrategy">
            <correlationExpression>
                <simple>header.AggregationHeader</simple>
            </correlationExpression>
            <log message="Route After Aggregate: ${body}" loggingLevel="INFO"/>
        </aggregate>
</route>

I have also tried:

<header>AggregationHeader</header>

The error above appears when i am trying to deploy to JBoss.


Solution

  • Looks like you're missing completion criteria. You must provide at least one.