Skip to content

Instantly share code, notes, and snippets.

@dfeist
Created March 28, 2012 20:32
Show Gist options
  • Save dfeist/2230266 to your computer and use it in GitHub Desktop.
Save dfeist/2230266 to your computer and use it in GitHub Desktop.
<choice>
<when expression="#[server.locale.country=='UK' and message.inboundProperty['fileSize'] < 1024">
<set-variable variableName="priority" value="1"/>
</when>
<when expression="#[server.locale.country=='US' and xpath('count(/order/items)') > 1">
<set-variable variableName="priority" value="2"/>
</when>
</choice>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment