2
votes

In WSO2 ESB, can i use aggregate mediator to aggregate messages split by iterate mediator(which doesn't use Send or Call mediators to send the message to external endpoint) ?
I have tried this but aggregate mediator is not picking up the split messages..
Any help is deeply appreciated .

2

2 Answers

2
votes

I've had to do the same thing and can tell that it works if you define a fake response :

iterate -> sequence

  • apply any needed transformations to your message
  • define it as a response message (set property RESPONSE to true)
  • call a sequence containing aggregate mediator

aggregate

  • completeCondition : set min and max messageCount to -1
  • onComplete : you will receive all your fragments as soon as iterate will have process all concerned nodes
0
votes

If you are only trying to transform a message iteratively, then you can use the ForEach mediator without the need for Iterate and Aggregate mediators. This is supported since ESB 4.9.0