[
http://jira.jboss.com/jira/browse/JBRULES-1482?page=all ]
Mark Proctor closed JBRULES-1482.
---------------------------------
Resolution: Done
Bug with ReeteoRuleBase and merged package
------------------------------------------
Key: JBRULES-1482
URL:
http://jira.jboss.com/jira/browse/JBRULES-1482
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Reteoo
Affects Versions: 4.0.4
Environment: doesn't matter
Reporter: Delbart Vincent
Assigned To: Mark Proctor
Priority: Critical
Fix For: 4.0.5, 5.0.0-M1
The two same rule (with identical name) appears two times in the ReteeoRuleBase
(reteooBuilder)
example :
package1 (name = "globalPackage)
- rule1 (name="rule1")
when
then
System.out.println("rule1 for the package1")
package2 (name = "globalPackage)
- rule2 (name="rule1")
when
then
System.out.println("rule2 for the package2")
when I add this two packages in the same RuleBase and execute :
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.add(package1);
ruleBase.add(package2);
the log out is :
rule1 for the package1
rule2 for the package2
The error is not in the mergePackage method in the AbstractRuleBase but in the
addPackage(final Package newPkg) line 425.
thanks,
--
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