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 -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event) Adds the fired rule in the rules-fired collectionvoidbeforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event) Methods inherited from class org.drools.core.event.DefaultAgendaEventListener
afterRuleFlowGroupActivated, afterRuleFlowGroupDeactivated, agendaGroupPopped, agendaGroupPushed, beforeRuleFlowGroupActivated, beforeRuleFlowGroupDeactivated, matchCancelled, matchCreated
-
Constructor Details
-
TrackingAgendaEventListener
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:
beforeMatchFiredin interfaceorg.kie.api.event.rule.AgendaEventListener- Overrides:
beforeMatchFiredin classorg.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:
afterMatchFiredin interfaceorg.kie.api.event.rule.AgendaEventListener- Overrides:
afterMatchFiredin classorg.drools.core.event.DefaultAgendaEventListener
-