[jboss-jira] [JBoss JIRA] (DROOLS-3554) KieContainer#updateToVersion removing rules with accumulate
Mario Fusco (Jira)
issues at jboss.org
Tue Feb 5 10:29:02 EST 2019
[ https://issues.jboss.org/browse/DROOLS-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-3554.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/b18b24e2f25e48d851e22e46c0db77a377c8c381
> 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
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list