]
Mario Fusco resolved DROOLS-3554.
---------------------------------
Resolution: Done
Fixed by
KieContainer#updateToVersion removing rules with accumulate
-----------------------------------------------------------
Key: DROOLS-3554
URL:
https://issues.jboss.org/browse/DROOLS-3554
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.16.0.Final
Reporter: Olga Rodionova
Assignee: Mario Fusco
Priority: Major
Attachments: RuleRemovalTest.java, SimpleRuleWithAccumulate.drl
Consider a rule with accumulate pattern in the LHS which logically inserts an object in
the RHS. Build the KieModule from the KieFileSystem including this rule, create the
KieContainer and the KieSession. Insert the facts. Everything works fine.
Create a new KieModule excluding this rule from the KieFileSystem, update the
KieContainer. Expect the logically inserted fact to be retracted, as the rule which
trigged its creation is no longer present. Turns out that the fact is still present in the
working memory