[jboss-jira] [JBoss JIRA] (DROOLS-951) Removing 2 or more rules does not retract justified objects
Zvonimir Bošnjak (JIRA)
issues at jboss.org
Thu Oct 15 04:01:00 EDT 2015
[ https://issues.jboss.org/browse/DROOLS-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zvonimir Bošnjak updated DROOLS-951:
------------------------------------
Steps to Reproduce: Add 2 or more rules which in RHS justify new object, remove one by one and verify that objectDeleted(ObjectDeletedEvent event) on RuleRuntimeEventListener is called for each removed rule. (was: In unit test add 2 or more rules which in RHS justify new object, remove one by one and verify that objectDeleted(ObjectDeletedEvent event) on RuleRuntimeEventListener is called for each removed rule. )
> Removing 2 or more rules does not retract justified objects
> -----------------------------------------------------------
>
> Key: DROOLS-951
> URL: https://issues.jboss.org/browse/DROOLS-951
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.3.0.Final
> Reporter: Zvonimir Bošnjak
> Assignee: Mario Fusco
> Fix For: 6.4.x
>
>
> When removing rules from knowledge which have logically inserted (justified) objects, only one object (from first removed rule) will be retracted.
> In example from AddRemoveRule#184: as it removes the first rule, it re-initializes all other path memories and, in particular, marks them as unlinked (AbstractTerminalNode#204)
> Later, when it tries to flush the deletions (AddRemoveRule#280), the unlinked status prevents the propagation from taking place.
>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list