[ https://issues.apache.org/activemq/browse/CAMEL-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57663#action_57663 ]
Claus Ibsen commented on CAMEL-2140: ------------------------------------ Okay got it, will offer both a simple fixed configuration and an Expression based so you can do that dynamic stuff as well. It will fallback to the fixed value in case the evaluation returned null or 0. > Make dynamic aggregator batch options configuration more easy. > -------------------------------------------------------------- > > Key: CAMEL-2140 > URL: https://issues.apache.org/activemq/browse/CAMEL-2140 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.0.0 > Reporter: Eric Bouer > Assignee: Claus Ibsen > Fix For: 2.3.0 > > > dynamically setting the batchsize/timeout etc from header or dynamic > expression is not straight forward. > I would expect something like this: > from("direct:a").aggregate(header("CLASSID")).batchTimeout(header("NUMBEROFSTUDENTS")).to("mock:result") > or > from("direct:a").aggregate(header("CLASSID")).setProperty(Exchange.BATCH_TIMOUT,header("ESTIMATION")).to("mock:result") -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.