Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<flow name="greedy">
<http:inbound-endpoint host="localhost" port="${httpPort}" path="change-machine"
<http:body-to-parameter-map-transformer />
<set-payload value="#[payload['amount']]" />
<transformer ref="StringToNumber" />
<transformer ref="DollarsToCents"/>
<when expression="payload.currency == 'USD'">
<scripting:component doc:name="USD Currency Script">
<scripting:script file="greedy.groovy">
<property key="currency" value="USD"/>
<when expression="payload.currency == 'GBP'">
<scripting:component doc:name="GBP Currency Script">
<scripting:script file="">
<property key="currency" value="GBP"/>

This comment has been minimized.

Copy link

commented Nov 12, 2014

since this article will be published in 3.6, shouldn't the http:inbound-endpoint be changed for the new http connector?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.