Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Conditional Flows with Choice Router Challenge
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="" xmlns:tracking="" xmlns="" xmlns:doc=""
<http:listener-config name="HTTP_Listener_Configuration" host="" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="choice_flow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/choose" doc:name="HTTP"/>
<set-variable variableName="value" value="#[message.inboundProperties.'http.query.params'.value]" doc:name="choice path"/>
<choice doc:name="Choice">
<when expression="#[flowVars.value == '1']">
<logger message="Entered first route" level="INFO" doc:name="Logger"/>
<when expression="#[flowVars.value == 'one']">
<logger message="Entered second route" level="INFO" doc:name="Logger"/>
<logger message="Entered third route" level="INFO" doc:name="Logger"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.