[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1020) BRMS Custom Rule Selector for Creating Deployable Packages

Barry Knapp (JIRA) jira-events at lists.jboss.org
Tue Aug 14 04:54:01 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-1020?page=comments#action_12371979 ] 
            
Barry Knapp commented on JBRULES-1020:
--------------------------------------

A filter for rules so the output is only the items that match would work well.

Here is a use case using 5 attributes of a rule:
1. Effective Date
2. Expiration Date
3. Test Effective Date
4. Test Expiration Date
5. Tested Status


There are 2 deployment types, one for deploying to test servers and one for production servers:

1.  Test Server : Users will create snapshot of rules to deploy to the Test Servers containing rules that meet the following criteria:

Test Effective Date >= Today
Test Expiration Date <= Today


2.  Production Server: Users will create snapshot of rules to deploy to the Production Servers containing rules that meet the following criteria:

Effective Date >=Today
Expiration Date >= Today
Tested Status = true



Justification: 
1.  Users must test new rules in the test servers, prior to moving them to production.
2.  Users must test the absence of rules in the test servers, prior to removing them from production.
3.  Users must test the replacement of rules in the test servers, such as when the logic of a rule is found to be incorrect and it is replaced by a new rule.


In my implementation I am always using the most recent version, so there is not much need for the historical search to meet this requirement.

___________________________________



> BRMS Custom Rule Selector for Creating Deployable Packages
> ----------------------------------------------------------
>
>                 Key: JBRULES-1020
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1020
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-brms
>         Environment: general
>            Reporter: Barry Knapp
>         Assigned To: Michael Neale
>
> Use Case : Ability to include or exclude rules in a deployable package based on rule meta data or custom rule attributes.
> Add an extension point to the BRMS for deciding which rules should be included in a deployable package.  
> A CustomSelector interface with an boolean accepts(Rule) method would allow implementors to create a class and implement the accepts method.  The custom method could then analyze the rule to determine if the rule should be included in the package being generated by return true for inclusion.  A property file with CustomExtractor=com...implementing class would allow the implementor to inject their CustomSelector class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list