Class ExecutionEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.automation.events.ExecutionEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class ExecutionEvent extends AbstractEvent
An ExecutionEvent is only used to notify rules when a script or the REST API trigger the run.
Author:
Jan N. Klug - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
  • Constructor Details

    • ExecutionEvent

      public ExecutionEvent(String topic, String payload, String source)
      Constructs a new rule execution event
      Parameters:
      topic - the topic of the event
      payload - the payload of the event
      source - the source of the event
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • toString

      public String toString()
      Overrides:
      toString in class Object