MuleSoft ESB Routes first-successful
Routers (Flow Controls in Anypoint Studio) route messages to various destinations in a Mule flow using First Successful.
2. Topics :
•Routers (Flow Controls in Anypoint Studio) route messages to various destinations in a Mule flow.
Pre-requisites :
•Basic under standing of Mule ESB
•JDK 1.8 or above
•Anypoint Studio v 6.0.0 or above
•Mule Server v 3.8.0 EE or above
Purpose:
•Routers (Flow Controls in Anypoint Studio) route messages to various destinations in a Mule flow using First Successful.
3. - 3 -
First Successful :
Sends a message to the next message processor within a "circular" list of processor targets.
The First Successful message processor iterates through its list of child message processors, routing a received message to each of
them in order until one processes the message successfully. If none succeed, an exception is thrown.
Success is defined as:
If the child message processor throws an exception, this is a failure.
Otherwise:
• If the child message processor returns a message that contains an exception payload, this is a failure.
• If the child message processor returns a message that does not contain an exception payload, this is a success.
• If the child message processor does not return a message (e.g. is a one-way connector), this is a success.
First Successful – Routes :