Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<flow name="prersons">
<http:listener path="person" method="POST" config-ref="httpListener" />
<foreach collection="#[payload.persons]">
<choice>
<when expression="#[payload.age > 21"]>
<logger message="#['$(payload.name) is an adult']" />
</when>
<otherwise>
<logger message="#['$(payload.name) is a minor.']" />
</otherwise>
</choice>
</foreach>
</flow>
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.