public class TrackingAgendaEventListener
extends org.drools.core.event.DefaultAgendaEventListener
TrackingAgendaEventListener is a listener that will track all rule firings in a session.| Constructor | Description |
|---|---|
TrackingAgendaEventListener(ValidationContext context) |
Default constructor.
|
| 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) |
public TrackingAgendaEventListener(ValidationContext context)
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.public void beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)
beforeMatchFired in interface org.kie.api.event.rule.AgendaEventListenerbeforeMatchFired in class org.drools.core.event.DefaultAgendaEventListenerpublic void afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)
afterMatchFired in interface org.kie.api.event.rule.AgendaEventListenerafterMatchFired in class org.drools.core.event.DefaultAgendaEventListenerCopyright © 2025. All rights reserved.