Created
January 5, 2012 15:04
-
-
Save dfeist/1565620 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="orderProcessingFlow"> | |
<file:inbound-endpoint path="/tmp/demo"/> | |
<enricher target="#[variable:OrderType]" source="regex:TYPE=(\w+)\n(?:\n|.)+?"> | |
<echo-component/> | |
</enricher> | |
<choice> | |
<when expression="#[variable:OrderType = Book]"> | |
<logger level="INFO" message="BOOK: #[payload]"/> | |
</when> | |
<when expression="#[variable:OrderType = CD]"> | |
<logger level="INFO" message="CD: #[payload]"/> | |
</when> | |
<otherwise> | |
<logger level="ERROR" message="Unknown Order Type: #[variable:OrderType]"/> | |
</otherwise> | |
</choice> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment