Pawandeep
Pawandeep

Reputation: 75

WSO2 ESB, Using Aggregate mediator without send/call in iterate mediator

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 .

Upvotes: 3

Views: 1512

Answers (2)

maheeka
maheeka

Reputation: 2093

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

Upvotes: 0

Jean-Michel
Jean-Michel

Reputation: 5946

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

Upvotes: 3

Related Questions