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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description JobStatusgetFinalStatus()Get the final status of the job.JobStatusgetNewStatus()Get the original final status of the job.JobStatusgetOldStatus()Get the old status of the job, the status that this job was in before the action started.voidsetFinalStatus(JobStatus newStatus)Set the final status of the job.- 
Methods inherited from interface com.redwood.scheduler.api.scripting.variables.RestartableScriptObjectgetFailJobOnError, getForceRestart, getMaximumRestarts, getPersistentMap, getRestartCount, getRestartReason, logRestarts, setFailJobOnError, setForceRestart, setLogRestarts, setMaximumRestarts
 
- 
 
- 
- 
- 
Method Detail- 
getFinalStatusJobStatus getFinalStatus() Get the final status of the job.- Returns:
- the final status that the job will be set to after the action completes.
 
 - 
setFinalStatusvoid setFinalStatus(JobStatus newStatus) Set the final status of the job.- Parameters:
- newStatus- the new final status to set.
 
 - 
getOldStatusJobStatus getOldStatus() Get the old status of the job, the status that this job was in before the action started.- Returns:
- the old status.
 
 - 
getNewStatusJobStatus getNewStatus() Get the original final status of the job. This is the status that the job will go into unless it is changed by aJobFileSearchor by callingsetFinalStatus(JobStatus)in e.g. a PostRunningAction. To get the final status of the job taking these into account, callgetFinalStatus().- Returns:
- the original final status of the job.
 
 
- 
 
-