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="choiceFlow"> | |
<description> | |
Flow that shows the use of the choice element for content-based routing | |
</description> | |
<jms:inbound-endpoint queue="in"/> | |
<choice> | |
<when expression="/element/@name = 'foo'" evaluator="xpath"> | |
<jms:inbound-endpoint queue="fooQueue"/> | |
</when> | |
<when expression="/element/@name = 'bar'" evaluator="xpath"> |
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> | |
<inbound-endpoint ref="myInboundEndpoint" /> | |
<wiretap> | |
<logger message="Ooops! #[payload] is an invalid message!" level="ERROR" /> | |
<expression-filter evaluator="groovy" expression="!payload.contains('valid message')" /> | |
</wiretap> | |
</flow> |
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> | |
<inbound-endpoint ref="myInboundEndpoint" /> | |
<wiretap> | |
<logger message="Ooops we have an invalid message!" level="ERROR" /> | |
<expression-filter evaluator="groovy" expression="!payload.contains('valid message')" /> | |
</wiretap> | |
</flow> |
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> | |
<inbound-endpoint ref="myInboundEndpoint" /> | |
<logger message="Hello from my Flow!" /> | |
</flow> |
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"> | |
<inbound-endpoint ref="orderEndpoint"/> | |
<enricher> | |
<authorizenet:authorize cardNumber="/order/cc/number" /> | |
<enrich target="#[header:paymentValidated]" source="/authorizenet/authorization/@valid" /> | |
<enrich target="#[header:paymentAuthCode]" source="/authorizenet/authorization/code"/> | |
</enricher> | |
<outbound-endpoint ref="orderStep2"/> | |
</flow |
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"> | |
<inbound-endpoint ref="orderEndpoint"/> | |
<enricher> | |
<authorizenet:authorization-and-capture cardNumber="#[xpath://order/cc/number]" | |
amount="#[xpath://order/amount" | |
expDate="#[xpath://order/cc/expDate]"/> | |
<enrich target="#[variable:paymentValidated]" source="#[bean:responseCode]"/> | |
<enrich target="#[variable:paymentMessage]" source="#[bean:responseReasonText]"/> | |
</enricher> | |
<outbound-endpoint ref="orderStep2"/> |
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"> | |
<inbound-endpoint ref="orderEndpoint"/> | |
<enricher target="#[variable:address]"> | |
<outbound-endpoint ref="stateLookup"> | |
<expression-transformer evaluator="xpath" expression="/order/address/zip" /> | |
</outbound-endpoint> | |
</enricher> | |
<outbound-endpoint ref="orderStep2"/> | |
</flow> |
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"> | |
<inbound-endpoint ref="orderEndpoint"/> | |
<enricher target="#[variable:address]"> | |
<outbound-endpoint ref="stateLookup"/> | |
</enricher> | |
<outbound-endpoint ref="orderStep2"/> | |
</flow> |
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> | |
<file:inbound-endpoint path="/myDirectory"> | |
<file:filename-wildcard-filter pattern="*.xml"/> | |
</file:inbound-endpoint> | |
<xml:xslt-transformer file="transform-to-my-format.xslt"/> | |
<splitter expresion="xpath://order"/> | |
<!-- The following message processors will be invoked for each order in the xml file --> | |
<choice> | |
<when evaluator="xpath" expression="xpath:/order[@type='book']"> | |
<component class="org.my.company.BookOrderService"/> |
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=".."> | |
- 0..1 Message Source(s) | |
- 1..n Message Processor(s) | |
- 0..1 Exception Handler | |
- 0..1 Threading Profile | |
</flow> |