-
public final class TriggersMatcherThe
TriggersMatcherclass provides methods for matching trigger conditions with event properties, both for standard events and charged events. It allows you to determine whether a given event satisfies the conditions specified in a set of triggers.
-
-
Constructor Summary
Constructors Constructor Description TriggersMatcher(LocalDataStore localDataStore)Creates an instance of the TriggersMatcherclass.
-
Method Summary
Modifier and Type Method Description final BooleanmatchEvent(List<TriggerAdapter> whenTriggers, EventAdapter event)Matches a standard event against a set of trigger conditions. -
-
Constructor Detail
-
TriggersMatcher
TriggersMatcher(LocalDataStore localDataStore)
Creates an instance of theTriggersMatcherclass.
-
-
Method Detail
-
matchEvent
final Boolean matchEvent(List<TriggerAdapter> whenTriggers, EventAdapter event)
Matches a standard event against a set of trigger conditions.
This function evaluates the trigger conditions for a standard event and returns
trueif all conditions within any of the events are met. The events in thewhenTriggerslist are checked in an OR-ed manner, meaning that if any event matches, and all conditions within that event are met, the function returnstrue.- Parameters:
whenTriggers- A list of event triggers with conditions to match against the event.event- The EventAdapter having event to be matched
-
-
-
-