Class TrackingAgendaEventListener

java.lang.Object
org.drools.core.event.DefaultAgendaEventListener
eu.europa.ec.taxud.validation.validator.TrackingAgendaEventListener
All Implemented Interfaces:
EventListener, org.kie.api.event.rule.AgendaEventListener

public class TrackingAgendaEventListener extends org.drools.core.event.DefaultAgendaEventListener
TrackingAgendaEventListener is a listener that will track all rule firings in a session.
Version:
$Revision : 1 $
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)
    Adds the fired rule in the rules-fired collection
    void
    beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)
     

    Methods inherited from class org.drools.core.event.DefaultAgendaEventListener

    afterRuleFlowGroupActivated, afterRuleFlowGroupDeactivated, agendaGroupPopped, agendaGroupPushed, beforeRuleFlowGroupActivated, beforeRuleFlowGroupDeactivated, matchCancelled, matchCreated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TrackingAgendaEventListener

      public TrackingAgendaEventListener(ValidationContext context)
      Default constructor.
      Parameters:
      context - The validation context. The context should provide a collection under the ReservedConstants.RULES_FIRED key that will be used to keep track of the firedRules.
  • Method Details

    • beforeMatchFired

      public void beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)
      Specified by:
      beforeMatchFired in interface org.kie.api.event.rule.AgendaEventListener
      Overrides:
      beforeMatchFired in class org.drools.core.event.DefaultAgendaEventListener
    • afterMatchFired

      public void afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)
      Adds the fired rule in the rules-fired collection
      Specified by:
      afterMatchFired in interface org.kie.api.event.rule.AgendaEventListener
      Overrides:
      afterMatchFired in class org.drools.core.event.DefaultAgendaEventListener