Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-951

Removing 2 or more rules does not retract justified objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.4.0.Beta1
    • 6.3.0.Final
    • core engine
    • None
    • Hide

      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.

      Show
      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.
    • NEW
    • NEW

    Description

      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.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            zbosnjak_jira Zvonimir BoĆĄnjak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: