[ https://issues.apache.org/activemq/browse/SM-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srivatsan Sridharan closed SM-1044. ----------------------------------- Resolution: Fixed Implemented custom Predicates. > Routing based on message property and set new property on the message in EIP > content based router > ------------------------------------------------------------------------------------------------- > > Key: SM-1044 > URL: https://issues.apache.org/activemq/browse/SM-1044 > Project: ServiceMix > Issue Type: New Feature > Components: servicemix-eip > Affects Versions: 3.1 > Environment: Windows, JBoss-4.0.4-GA using Servicemix deployer > Reporter: Srivatsan Sridharan > Priority: Minor > Attachments: SwitchPredicate.java, XPathPredicate.java > > > SwitchPredicate.java (available in Servicemix trunk) routes based on the > (boolean) value of the property set on the message exchange. It would be good > to have it > 1) route based on the value (not particularly boolean) of a property set on > the message. > 2) set additional property on the message when the evaluation of property > value is true. > SwitchPredicate.java attached herewith has the changes to address the above. > > XPathPredicate.java attached herewith has the changes to set additional > property in the ContentBasedRouter. > Please let me know if this is the right approach. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.