Skip to content

Instantly share code, notes, and snippets.

@marianogonzalez
Created May 25, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianogonzalez/62ff19aa2389c14fe7bc84774baee9f1 to your computer and use it in GitHub Desktop.
Save marianogonzalez/62ff19aa2389c14fe7bc84774baee9f1 to your computer and use it in GitHub Desktop.
<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