[ 
https://issues.apache.org/activemq/browse/SM-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Taylor updated SM-1683:
-----------------------------

             Assignee:     (was: Gert Vanthienen)
        Fix Version/s:     (was: 3.2.3)
    Affects Version/s:     (was: 3.2.3)
          Description: 
Worked with Gert on this. Asked if we could add the ability to set XML 
attribute values identified by an XPath to a supplied String value and a 
supplied XML attribute value identified by an XPath. Also, asked if would could 
add a way to ensure that the 'out' message is returned for InOptionalOut, 
InRobustOut, and InOut Exchanges where the endpoint is a Provider and returning 
the 'in' message if the 'out' does not exist.

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(xpathTo, string value) & 
setAttributeWithAttribute(xpathTo, xpathFrom)

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



  was:
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




> 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
>         Environment: Patch to Drools SE build 3.2.2-712210
>            Reporter: Brian Taylor
>         Attachments: AutoReply.drl, DroolsComponentTest.java, 
> DroolsEndpoint.java, DroolsExecutionContext.java, Exchange.java, 
> JbiHelper.java, Message.java, XPathAttrMod-StringValue.drl, 
> XPathAttrMod-XPathAttr.drl
>
>
> Worked with Gert on this. Asked if we could add the ability to set XML 
> attribute values identified by an XPath to a supplied String value and a 
> supplied XML attribute value identified by an XPath. Also, asked if would 
> could add a way to ensure that the 'out' message is returned for 
> InOptionalOut, InRobustOut, and InOut Exchanges where the endpoint is a 
> Provider and returning the 'in' message if the 'out' does not exist.
> 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(xpathTo, string value) & 
> setAttributeWithAttribute(xpathTo, xpathFrom)
> 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