Package 

Class TriggersMatcher


  • 
    public final class TriggersMatcher
    
                        

    The TriggersMatcher class 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 TriggersMatcher class.
    • Method Summary

      Modifier and Type Method Description
      final Boolean matchEvent(List<TriggerAdapter> whenTriggers, EventAdapter event) Matches a standard event against a set of trigger conditions.
      • Methods inherited from class java.lang.Object

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

      • TriggersMatcher

        TriggersMatcher(LocalDataStore localDataStore)
        Creates an instance of the TriggersMatcher class.
    • 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 true if all conditions within any of the events are met. The events in the whenTriggers list are checked in an OR-ed manner, meaning that if any event matches, and all conditions within that event are met, the function returns true.

        Parameters:
        whenTriggers - A list of event triggers with conditions to match against the event.
        event - The EventAdapter having event to be matched