Setting XML Attributes in Messages & Auto Reply to support InOut w/o calling 
answer()/route() in .drl files
-----------------------------------------------------------------------------------------------------------

                 Key: SM-1683
                 URL: https://issues.apache.org/activemq/browse/SM-1683
             Project: ServiceMix
          Issue Type: Improvement
          Components: servicemix-drools
    Affects Versions: 3.2.3
         Environment: Patch to Drools SE build 3.2.2-712210
            Reporter: Brian Taylor
            Assignee: Gert Vanthienen
             Fix For: 3.2.3
         Attachments: AutoReply.drl, DroolsComponentTest.java, 
XPathAttrMod-XPathAttr.drl

Wasn't able to test because I couldn't get a JBI instance to initialize 
(jbi.ini()) in the DroolsComponentTest.

XML Attribute updating ability:

Message.java:
+Added setAttributeWithValue() & setAttributeWithAttribute()

Auto Reply:

DroolsEndpoint.java:
+Added feature to drools()

DroolsExecutionContext.java
+Added answer() as wrapper to JbiHelper to support Auto Reply

Improve Consistency:

Exchange.java:
+Added IN_MESSAGE & OUT_MESSAGE

JbiHelper.java:
+Used Exchange.IN_MESSAGE & Exchange.OUT_MESSAGE
+Added JBI_HELPER_KEY

Testing:

DroolsComponentTest.java
+Added testAutoReply(), testModifyXMLWithAValue(), 
testModifyXMLWithAnAttribute()

AutoReply.drl, XPathAttrMod-StringValue.drl, XPathAttrMod-XPathAttr.drl



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to