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

Ruleflow group activation/deactivation calls wrong listener methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.5.1.Final, 6.0.0.CR1
    • 5.5.0.Final, 6.0.0.Final
    • None
    • Hide

      1) Register new AgendaEventListener that prints method invocations

      2) Activate ruleflow-group

      3) Deactivate ruleflow-group

      before method of the listener are not invoked
      after method of the listener are invoked twice

      Show
      1) Register new AgendaEventListener that prints method invocations 2) Activate ruleflow-group 3) Deactivate ruleflow-group before method of the listener are not invoked after method of the listener are invoked twice
    • Low

      Method org.drools.impl.StatefulKnowledgeSessionImpl$AgendaEventListenerWrapper.beforeRuleFlowGroupActivated delegates to listener.afterRuleFlowGroupActivated.

      Method beforeRuleFlowGroupDeactivated delegates to listener.afterRuleFlowGroupDeactivated.

      Thus when (de)activating ruleflow-group the before methods of any registered listener are NOT invoked while the after methods are invoked TWICE.

              mfusco@redhat.com Mario Fusco
              ales_d Ales Dolecek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 10 minutes
                  10m
                  Remaining:
                  Remaining Estimate - 10 minutes
                  10m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified