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 successfully
Click on the below url
• http://localhost:8081/router?language=Spanis
h
If you can specify only language like below
http://localhost:8081/router?language
It will display default as English

Choice flow control

  • 1.
    Choice Flow ControlReference 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.
  • 2.
    • A choiceflow 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.
  • 4.
    Configuring the ChoiceFlow 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
  • 10.
  • 11.
    After deployed successfully Clickon the below url • http://localhost:8081/router?language=Spanis h
  • 13.
    If you canspecify only language like below http://localhost:8081/router?language It will display default as English