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

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Fri Jan 30 03:13:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBRULES-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450345#action_12450345 ] 

Toni Rikkola commented on JBRULES-1923:
---------------------------------------

#1 Is the quick fix for Guvnor.

#2 Would be the best fix since the order of the rules doesn't count in any other situation. And if the rules are gathered from different sources when not using the Guvnor this is going to cause bugs.

> Rule order counts when 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:  5.0.0.M4
>            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