Skip to content

Instantly share code, notes, and snippets.

@dfeist
Created March 14, 2011 14:04
Show Gist options
  • Save dfeist/869164 to your computer and use it in GitHub Desktop.
Save dfeist/869164 to your computer and use it in GitHub Desktop.
<flow name="choiceFlow2">
<description>
Flow that shows the use of the choice element for selective message processing
</description>
<http:inbound-endpoint host="localhost" port="8080"/>
<choice>
<when expression="payload=='foo'" evaluator="groovy">
<append-string-transformer message=" Hello foo" />
</when>
<when expression="payload=='bar'" evaluator="groovy">
<append-string-transformer message=" Hello bar" />
</when>
<otherwise>
<append-string-transformer message=" Hello ?" />
</otherwise>
</choice>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment