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

Knowledge Agent resets the Rules that are using Negative Patterns to delaying with Fusion

XMLWordPrintable

      If I had a rule of this style in progress:

      rule "Basic Rule"
      dialect 'mvel'
      when
      $eventA: EventA($aId: id) from entry-point "time stream"
      not EventB($aId == id, this after [0s,5m] $eventA) from entry-point "time stream"
      then
      System.out.println("Event A " + $aId + " at " + $eventA.timestamp);
      end

      And this rule had been activated 2 minutes ago... When the KnowledgeAgent updates the StatefulKnowledgeSession, after someone updates the KnowledgeBase from Guvnor, the time intervals resets to zero, because all the activated rules are canceled and activated again later.

      The result is that the System.out fires 7 minutes after the event was inserted... 2 minutes later.

              mfusco@redhat.com Mario Fusco
              adrian.paredes Adrian Paredes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: