[
https://jira.jboss.org/jira/browse/JBRULES-1923?page=com.atlassian.jira.p...
]
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