Aswin
Aswin

Reputation: 71

Stop a loop in WSO2 ESB

I was wondering if I could stop an Iterator mediator or a foreach mediator in WSO2 ESB in-between i.e. Is there a break;(statement in Java) equivalent in WSO2 ESB.

Can I use <drop/> mediator to achieve the same ?

Thanks in advance!!

Upvotes: 2

Views: 1065

Answers (2)

Minh Trần
Minh Trần

Reputation: 29

With version 7.2.0, you can use the <respond/> to break the foreach mediator

Upvotes: 0

Bee
Bee

Reputation: 12513

Currently, this is not supported. It is already reported as an improvement and will be fixed in a future release of ESB.

Upvotes: 2

Related Questions