Re: aggregation and completionPredicate

2014-12-07 Thread mailingl...@j-b-s.de
Hi Claus! Sorry but I do not understand. My correlation expression is simply returning the value of "key" (see class "CorrelationExpression" below of my initial mail). Debugging I see the first list contains two elements as expected. As soon the correlation key changes camel correctly starts wi

Re: aggregation and completionPredicate

2014-12-06 Thread Claus Ibsen
Hi What is your correlation expression? Sounds like you should use an expression that matches the key from the map, eg so you have one group for 1. And another group for 2. Then the aggregate is just to add the bodies into a list. On Sun, Dec 7, 2014 at 1:38 AM, Jens Breitenstein wrote: > Hi

aggregation and completionPredicate

2014-12-06 Thread Jens Breitenstein
Hi Camel Users! I am struggling with aggregation in general and hopefully you can give me a hint: Basically my message body contains a Map. Now I need to aggregate messages to List> based on a certain map key value. So lets assume we have message 1: map { key = "1", val = "A" } message 2: