[jboss-jira] [JBoss JIRA] Created: (JBRULES-483) Open Decision Table API to allow custom RuleSheetListeners

Steven Williams (JIRA) jira-events at jboss.com
Mon Sep 11 03:30:43 EDT 2006


Open Decision Table API to allow custom RuleSheetListeners
----------------------------------------------------------

                 Key: JBRULES-483
                 URL: http://jira.jboss.com/jira/browse/JBRULES-483
             Project: JBoss Rules
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Decision tables
            Reporter: Steven Williams
         Assigned To: Mark Proctor


I have a need for a different format for my decision tables - basically instead of the current format with one row per rule with conditions across the top I need to support a matrix-like structure where both the horizontal and the vertical axes represent conditions and the intersection represents the action. In order to do this I created my own MatrixRuleSheetListener inheriting from RuleSheetListener and overriding certain methods. This all works fine however I had to hack the drools code a little to allow me to do it. I was wondering if it would be possible to open up the API to allow this.

Specifically:

1. add method to org.drools.decisiontable.parser.RuleSheetListener
    protected void addRule(Rule rule)
    {
        this._ruleList.add(rule);
    }
2. add empty protected methods preInitRuleTable(row, column, value) and postInitRuleTable(row, column, value, rule) to org.drools.decisiontable.parser.RuleSheetListener which are called from the start and end of the initRuleTable method.
3. Add agendaGroup property to org.drools.decisiontable.model.Rule
4. Add a new method compile(InputStream, InputType, RuleSheetListener) to org.drools.decisiontable.SpreadsheetCompiler

I have attached these changes to this request.

Steve

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