choice flow control
TRANSCRIPT
Choice Flow Control Reference
The choice flow control dynamically routes messages based on message payload or
properties. It adds conditional programming to a flow, similar to an if/then/else code block.
• A choice flow control uses expressions to evaluate the content of a message, then it routes the message to one of the routing options within its scope (see image below). It directs messages to the first routing option in the scope that matches the routing configurations (evaluates to true). If none of expressions evaluate to true, the choice flow control directs the message to the default (else) route.
Configuring the Choice Flow Control
• To configure the choice flow control, you need to determine the following message routing details:
• Content the choice flow router should evaluate to determine routing
• Number of routing options with which to supply the choice flow control
• What processing Mule should perform for each routing option
• Default routing option
XML configuration Here
After deployed successfullyClick on the below url
• http://localhost:8081/router?language=Spanish
If you can specify only language like belowhttp://localhost:8081/router?language
It will display default as English