Created
March 14, 2011 14:04
-
-
Save dfeist/869164 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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