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

Ron Gavlin closed SM-1237.
--------------------------

    Fix Version/s: 3.2.1
       Resolution: Duplicate

Duplicate of SM-1248.

> Drools should allow the default target to be specified outside the rule file
> ----------------------------------------------------------------------------
>
>                 Key: SM-1237
>                 URL: https://issues.apache.org/activemq/browse/SM-1237
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-drools
>    Affects Versions: 3.2.1
>            Reporter: Ron Gavlin
>             Fix For: 3.2.1
>
>
> Drools should allow the default target to be specified outside the rule file. 
> This allows common rule sets to be reused across different process flows. 
> A common use case for this requirement is using Drools as a semantic 
> validator. In this case, each rule in the rule set generates a fault if it is 
> satisfied. If no rule is satisfied, the message is considered valid and 
> forwarded to the externally-supplied default target. The rule file used to 
> implement this semantic validator can be re-used across many process flows. 
> When implementing a semantic validator as described above, it would also be 
> useful for each rule to optionally forward "fault content" to the default 
> target instead of generating a JBI fault. In this case, the default target 
> would be responsible for distinguishing between fault and non-fault content 
> and handling it appropriately. A convenience method added to the JbiHelper, 
> such as faultToDefaultTarget(), would significantly help a rule writer 
> implement such functionality.
> I intend to submit a patch for this issue in the near future.

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