Thanks, Claus. So, this will be available in 2.16.x. In the meantime, do you mind providing a working example of how to use conditional DSL? I have tried something like this, which didn't work:
split(). tokenize(System.lineSeparator(), readerConfig.getLinesPerChunk()). streaming(). * choice(). when(...my condition predicate...). parallelProcessing(). endChoice(). * bean(myProcessor). ... end(); This doesn't work for the obvious reason: whatever precedes "parallelProcessing()" must return a SplitDefinition, not ChoiceDefinition(). So, how do we enable parallel processing in DSL conditionally? Thanks, Constantine -- View this message in context: http://camel.465427.n5.nabble.com/DSL-to-dynamically-enable-disable-parallelProcessing-tp5770389p5770433.html Sent from the Camel - Users mailing list archive at Nabble.com.