Interface PostRunningActionScriptObject

  • All Superinterfaces:
    RestartableScriptObject

    public interface PostRunningActionScriptObject
    extends RestartableScriptObject
    This class provides methods to inspect and set the new final status, and to control restarts of the trigger/action. This class has no properties.
    • Method Detail

      • getFinalStatus

        JobStatus getFinalStatus()
        Get the final status of the job.
        Returns:
        the final status that the job will be set to after the action completes.
      • setFinalStatus

        void setFinalStatus​(JobStatus newStatus)
        Set the final status of the job.
        Parameters:
        newStatus - the new final status to set.
      • getOldStatus

        JobStatus getOldStatus()
        Get the old status of the job, the status that this job was in before the action started.
        Returns:
        the old status.
      • getNewStatus

        JobStatus getNewStatus()
        Get the original final status of the job. This is the status that the job will go into unless it is changed by a JobFileSearch or by calling setFinalStatus(JobStatus) in e.g. a PostRunningAction. To get the final status of the job taking these into account, call getFinalStatus() .
        Returns:
        the original final status of the job.