[jboss-jira] [JBoss JIRA] Created: (JBRULES-1923) Rule order counts when adding inheriting rules

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Mon Jan 19 03:21:04 EST 2009


Rule order counts when adding inheriting rules
----------------------------------------------

                 Key: JBRULES-1923
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1923
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-compiler
    Affects Versions: FUTURE
            Reporter: Toni Rikkola
            Assignee: Mark Proctor


When inheriting rules, the order they are written to DRL counts. 

dward noticed this when using Guvnor. There is no way to control the order of the rules in Guvnor, so because of this inheritance doesn't always work.

This works:
rule A 
    when    
        ...
    then
end

rule B extends A
    when
        ...
    then
end

This doesn't work:
rule B extends A
    when
        ...
    then
end

rule A 
    when    
        ...
    then
end

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

        



More information about the jboss-jira mailing list