Interface TriggerScriptObject


  • public interface TriggerScriptObject
    This class contains the methods to retrieve trigger context. This class has no properties.
    • Method Detail

      • getSchedulerEntity

        com.redwood.scheduler.api.model.SchedulerEntity getSchedulerEntity()
        Returns the related SchedulerEntity that this trigger is operating on. The returned entity is dependent upon the context of the Trigger. For TriggerPoint.BeforeJobOnChange, TriggerPoint.BeforeJobPreRunning, and TriggerPoint.BeforeJobPostRunning the Job is returned. For TriggerPoint.BeforeDefinitionChange the SchedulerEntity being changed is returned.
        Returns:
        the related SchedulerEntity.
      • getUserName

        String getUserName()
        Returns the name of the user executing this context. The returned username is dependent upon the context of the Trigger. For TriggerPoint.BeforeJobOnChange, TriggerPoint.BeforeJobPreRunning, and TriggerPoint.BeforeJobPostRunning the Job.getOwnerSubject() is returned. For TriggerPoint.BeforeDefinitionChange the UserContext is returned.
        Returns:
        the username