Interface IStatefulAgendaFilter
- Namespace
- NRules.AgendaFilters
- Assembly
- NRules.dll
Base interface for stateful agenda filters that store some state related to the activations and need to update that state during the activation lifecycle.
public interface IStatefulAgendaFilter : IAgendaFilter
- Inherited Members
Methods
Remove(AgendaContext, Activation)
Called by the engine when activation is removed from the agenda. The agenda filter can use this method to remove any state associated with the activation.
void Remove(AgendaContext context, Activation activation)
Parameters
context
AgendaContextAgenda context.
activation
ActivationRule activation.
Remarks
This method must not evaluate agenda expressions.
Select(AgendaContext, Activation)
Called by the engine when activation is selected from the agenda, before rule's actions are executed.
void Select(AgendaContext context, Activation activation)
Parameters
context
AgendaContextAgenda context.
activation
ActivationRule activation.
Remarks
This method must not evaluate agenda expressions.