Created
July 20, 2011 10:49
-
-
Save estebanroblesluna/1094755 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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