Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created May 28, 2013 00:59
Show Gist options
  • Save ddossot/5659881 to your computer and use it in GitHub Desktop.
Save ddossot/5659881 to your computer and use it in GitHub Desktop.
<flow name="flow">
<vm:inbound-endpoint path="test.in"
exchange-pattern="request-response" />
<http:outbound-endpoint address="http://www.google.com/"
method="GET" exchange-pattern="request-response" />
<choice>
<when
expression="#[message.inboundProperties['Content-Type'].contains('text/html')]">
<logger message="when number one invoked" level="WARN" />
</when>
<when
expression="#[message.inboundProperties['Content-Type'].contains('application/json')]">
<logger message="when number two invoked" level="WARN" />
</when>
<otherwise>
<logger message="otherwise invoked" level="WARN" />
</otherwise>
</choice>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment