Package com.redwood.scheduler.api.model
Interface RaiseEvent
- 
- All Superinterfaces:
- Detail,- Precondition,- SchedulerEntity,- SchedulerEntityComp
 - All Known Subinterfaces:
- JobChainCallRaiseEvent,- JobDefinitionRaiseEvent,- JobRaiseEvent
 
 public interface RaiseEvent extends Precondition This holds all of the fields common to JobRaiseEvent, JobDefinitionRaiseEvent and JobChainCallRaiseEvent.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringKEY_JOBDEFINITIONThis will be replaced by the job definition name (without the GLOBAL prefix if it is in GLOBAL, otherwise with the partition as a prefix) for a job raise event only.static StringKEY_JOBDEFINITION_NAMEThis will be replaced by the job definition name only, for a job raise event only.static StringKEY_JOBDEFINITION_PARTITIONThis will be replaced by the job definition partition only, for a job raise event only.static StringKEY_JOBDESCRIPTIONThis will be replaced by Job.getDescription().static StringKEY_JOBIDThis will be replaced by Job.getJobId().static StringKEY_JOBSTATUSThis will be replaced by Job.getStatus() for a job raise event only.- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description LonggetErrorCode()Get the value for ErrorCode.StringgetRaiseComment()Get the value for RaiseComment.JobStatusgetStatusToRaiseOn()Get the value for StatusToRaiseOn.voidsetErrorCode(Long newErrorCode)Set the value for ErrorCode.voidsetRaiseComment(String newRaiseComment)Set the value for RaiseComment.voidsetStatusToRaiseOn(JobStatus newStatusToRaiseOn)Set the value for StatusToRaiseOn.- 
Methods inherited from interface com.redwood.scheduler.api.model.PreconditiongetExpression, getTimeWindow, getTimeWindowStatus, getTimeZone, setExpression, setTimeWindow, setTimeWindowStatus, setTimeZone
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
KEY_JOBIDstatic final String KEY_JOBID This will be replaced by Job.getJobId().- See Also:
- Constant Field Values
 
 - 
KEY_JOBDESCRIPTIONstatic final String KEY_JOBDESCRIPTION This will be replaced by Job.getDescription().- See Also:
- Constant Field Values
 
 - 
KEY_JOBSTATUSstatic final String KEY_JOBSTATUS This will be replaced by Job.getStatus() for a job raise event only.- See Also:
- Constant Field Values
 
 - 
KEY_JOBDEFINITIONstatic final String KEY_JOBDEFINITION This will be replaced by the job definition name (without the GLOBAL prefix if it is in GLOBAL, otherwise with the partition as a prefix) for a job raise event only.- See Also:
- Constant Field Values
 
 - 
KEY_JOBDEFINITION_NAMEstatic final String KEY_JOBDEFINITION_NAME This will be replaced by the job definition name only, for a job raise event only.- See Also:
- Constant Field Values
 
 - 
KEY_JOBDEFINITION_PARTITIONstatic final String KEY_JOBDEFINITION_PARTITION This will be replaced by the job definition partition only, for a job raise event only.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getErrorCodeLong getErrorCode() Get the value for ErrorCode. (If StatusToRaiseOn is JobStatus.Error or JobStatus.Killed, and ErrorCode is non null, then the Event will only be raised if the Job.getStatus() is JobStatus.Error or JobStatus.Killed (as appropriate) and Job.ReturnCode() is the same as getErrorCode().)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRaiseCommentString getRaiseComment() Get the value for RaiseComment. (The comment to set in the RaiserComment field of the raised Event when the appropriate conditions are set. In the resulting string the following substitutions will take place:- ${jobid}will be replaced by Job.getJobId().
- ${jobdescription}will be replaced by Job.getDescription().
- ${jobstatus}will be replaced by Job.getStatus(), this will be the same as StatusToRaiseOn.
 nullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getStatusToRaiseOnJobStatus getStatusToRaiseOn() Get the value for StatusToRaiseOn. (The status that needs to be reached to raise the associated EventDefinition.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setErrorCodevoid setErrorCode(Long newErrorCode) Set the value for ErrorCode. (If StatusToRaiseOn is JobStatus.Error or JobStatus.Killed, and ErrorCode is non null, then the Event will only be raised if the Job.getStatus() is JobStatus.Error or JobStatus.Killed (as appropriate) and Job.ReturnCode() is the same as getErrorCode().) This value is optional.- Parameters:
- newErrorCode- the new value for ErrorCode.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setRaiseCommentvoid setRaiseComment(String newRaiseComment) Set the value for RaiseComment. (The comment to set in the RaiserComment field of the raised Event when the appropriate conditions are set. In the resulting string the following substitutions will take place:- ${jobid}will be replaced by Job.getJobId().
- ${jobdescription}will be replaced by Job.getDescription().
- ${jobstatus}will be replaced by Job.getStatus(), this will be the same as StatusToRaiseOn.
 - Parameters:
- newRaiseComment- the new value for RaiseComment. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setStatusToRaiseOnvoid setStatusToRaiseOn(JobStatus newStatusToRaiseOn) Set the value for StatusToRaiseOn. (The status that needs to be reached to raise the associated EventDefinition.) This value is mandatory.- Parameters:
- newStatusToRaiseOn- the new value for StatusToRaiseOn. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 
- 
 
-