You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2008/11/21 20:26:05 UTC

[jira] Assigned: (SM-1683) Setting XML Attributes in Messages & Auto Reply to support InOut w/o calling answer()/route() in .drl files

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

Gert Vanthienen reassigned SM-1683:
-----------------------------------

    Assignee: Gert Vanthienen

> 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
>            Assignee: Gert Vanthienen
>         Attachments: AutoReply.drl, DroolsComponentTest.java, DroolsEndpoint.java, DroolsExecutionContext.java, Exchange.java, InOut MEP As Provider Using AutoReply Use Case.jpg, 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.