Skip to content

Instantly share code, notes, and snippets.

@estebanroblesluna
Created July 20, 2011 10:49
Show Gist options
  • Save estebanroblesluna/1094755 to your computer and use it in GitHub Desktop.
Save estebanroblesluna/1094755 to your computer and use it in GitHub Desktop.
<mulexml:jaxb-context name="jaxbContext" packageNames="com.democompany.models.transactions"/>
<flow name="validateXML">
<vm:inbound-endpoint path="in" />
<mulexml:jaxb-xml-to-object-transformer name="XmlToTrade" jaxbContext-ref="jaxbContext"/>
<enricher target="#[header:INVOCATION:validationResult]">
<absoluterule:validation ruleSetClasses="com.democompany.rules.transactionvalidation.RuleSetTransactionRules" />
</enricher>
<choice>
<when evaluator="groovy" expression="message.getInvocationProperty('validationResult').isEmpty()">
<vm:outbound-endpoint path="out" />
</when>
<otherwise>
<vm:outbound-endpoint path="error" />
</otherwise>
</choice>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment