[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1923) Rule order counts when inheriting rules
Michael Neale (JIRA)
jira-events at lists.jboss.org
Mon Jan 26 19:51:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12449795#action_12449795 ]
Michael Neale commented on JBRULES-1923:
----------------------------------------
OK this is a problem with the compiler.
Now we have 2 options:
1) Make guvnor render "parent" rules first
2) make the compiler not care about the order
thoughts?
> 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