Package com.redwood.scheduler.api.model
Interface SAPProcessDefinition
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- Readable,- SAPProcessDefinitionComp,- SchedulerEntity,- SchedulerEntityComp
 
 public interface SAPProcessDefinition extends SAPProcessDefinitionComp, Detail, BusinessKeyObject, Readable Process definition.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "SAPProcessDefinition" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<SAPProcessDefinition>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
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 SAPProcessRestartcreateSAPProcessRestart()Create a newSAPProcessRestartlinked to this object.StringgetDeprecated1()Get the value for Deprecated1.LonggetDeprecated2()Get the value for Deprecated2.StringgetEventEnd()Get the value for EventEnd.StringgetEventEndParameter()Get the value for EventEndParameter.StringgetEventGreen()Get the value for EventGreen.StringgetEventGreenParameter()Get the value for EventGreenParameter.StringgetEventRed()Get the value for EventRed.StringgetEventRedParameter()Get the value for EventRedParameter.StringgetEventStart()Get the value for EventStart.StringgetEventStartParameter()Get the value for EventStartParameter.LonggetMaxNumberOfRestarts()Get the value for MaxNumberOfRestarts.StringgetOnErrorProcessType()Get the value for OnErrorProcessType.StringgetOnErrorProcessVariant()Get the value for OnErrorProcessVariant.StringgetProcessType()Get the value for ProcessType.StringgetProcessTypeDescription()Get the value for ProcessTypeDescription.StringgetProcessVariant()Get the value for ProcessVariant.StringgetProcessVariantDescription()Get the value for ProcessVariantDescription.LonggetRestartDelay()Get the value for RestartDelay.TimeUnitgetRestartDelayUnits()Get the value for RestartDelayUnits.SAPProcessChaingetSAPProcessChain()Get the SAPProcessChain.SAPProcessRestartgetSAPProcessRestartByJob(Job job)Get the SAPProcessRestart by JobSAPProcessDefinition.RWIterable<SAPProcessRestart>getSAPProcessRestarts()Get anRWIterableover an ordered collection ofSAPProcessRestarts.booleanisGreenEqualsRed()Get the value for GreenEqualsRed.booleanisRestartUnchecked()Get the value for RestartUnchecked.voidsetDeprecated1(String newDeprecated1)Set the value for Deprecated1.voidsetDeprecated2(Long newDeprecated2)Set the value for Deprecated2.voidsetEventEnd(String newEventEnd)Set the value for EventEnd.voidsetEventEndParameter(String newEventEndParameter)Set the value for EventEndParameter.voidsetEventGreen(String newEventGreen)Set the value for EventGreen.voidsetEventGreenParameter(String newEventGreenParameter)Set the value for EventGreenParameter.voidsetEventRed(String newEventRed)Set the value for EventRed.voidsetEventRedParameter(String newEventRedParameter)Set the value for EventRedParameter.voidsetEventStart(String newEventStart)Set the value for EventStart.voidsetEventStartParameter(String newEventStartParameter)Set the value for EventStartParameter.voidsetGreenEqualsRed(boolean newGreenEqualsRed)Set the value for GreenEqualsRed.voidsetMaxNumberOfRestarts(Long newMaxNumberOfRestarts)Set the value for MaxNumberOfRestarts.voidsetOnErrorProcessType(String newOnErrorProcessType)Set the value for OnErrorProcessType.voidsetOnErrorProcessVariant(String newOnErrorProcessVariant)Set the value for OnErrorProcessVariant.voidsetProcessType(String newProcessType)Set the value for ProcessType.voidsetProcessTypeDescription(String newProcessTypeDescription)Set the value for ProcessTypeDescription.voidsetProcessVariant(String newProcessVariant)Set the value for ProcessVariant.voidsetProcessVariantDescription(String newProcessVariantDescription)Set the value for ProcessVariantDescription.voidsetRestartDelay(Long newRestartDelay)Set the value for RestartDelay.voidsetRestartDelayUnits(TimeUnit newRestartDelayUnits)Set the value for RestartDelayUnits.voidsetRestartUnchecked(boolean newRestartUnchecked)Set the value for RestartUnchecked.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
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- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "SAPProcessDefinition" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<SAPProcessDefinition> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getEventStartString getEventStart() Get the value for EventStart. (Start event.)- 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.
 
 - 
getEventStartParameterString getEventStartParameter() Get the value for EventStartParameter. (Start event parameter.)- 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.
 
 - 
getProcessTypeString getProcessType() Get the value for ProcessType. (Process type.)- 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.
 
 - 
getProcessTypeDescriptionString getProcessTypeDescription() Get the value for ProcessTypeDescription. (Optional process type description)- 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.
 
 - 
getProcessVariantString getProcessVariant() Get the value for ProcessVariant. (Process variant.)- 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.
 
 - 
getProcessVariantDescriptionString getProcessVariantDescription() Get the value for ProcessVariantDescription. (Optional process variant description)- 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.
 
 - 
getDeprecated1String getDeprecated1() Get the value for Deprecated1. (Process instance.)- 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.
 
 - 
getEventEndString getEventEnd() Get the value for EventEnd. (End event.)- 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.
 
 - 
getEventEndParameterString getEventEndParameter() Get the value for EventEndParameter. (End event parameter.)- 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.
 
 - 
getEventGreenString getEventGreen() Get the value for EventGreen. (Green event.)- 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.
 
 - 
getEventGreenParameterString getEventGreenParameter() Get the value for EventGreenParameter. (Green event parameter.)- 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.
 
 - 
getEventRedString getEventRed() Get the value for EventRed. (Red event.)- 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.
 
 - 
getEventRedParameterString getEventRedParameter() Get the value for EventRedParameter. (Red event parameter.)- 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.
 
 - 
isGreenEqualsRedboolean isGreenEqualsRed() Get the value for GreenEqualsRed. (Whether green event equals red.)- 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.
 
 - 
getOnErrorProcessTypeString getOnErrorProcessType() Get the value for OnErrorProcessType. (Process type to call on error.)- 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.
 
 - 
getOnErrorProcessVariantString getOnErrorProcessVariant() Get the value for OnErrorProcessVariant. (Process variant to call on error.)- 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.
 
 - 
getMaxNumberOfRestartsLong getMaxNumberOfRestarts() Get the value for MaxNumberOfRestarts. (Max number of restarts.) 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.
 
 - 
getDeprecated2Long getDeprecated2() Get the value for Deprecated2. (This attribute is deprecated and no longer in use.) 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.
 
 - 
getRestartDelayLong getRestartDelay() Get the value for RestartDelay. (Delay between restarts.) 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.
 
 - 
getRestartDelayUnitsTimeUnit getRestartDelayUnits() Get the value for RestartDelayUnits. (Time units for 'restart delay amount' - seconds, minutes, hours, days. May not be null, defaults to minutes) 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.
 
 - 
isRestartUncheckedboolean isRestartUnchecked() Get the value for RestartUnchecked. (Ignore SAP Restart Settings. Your process chain can be repeatable or repairable in SAP; this attribute allows you to ignore the setting in SAP.)- 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.
 
 - 
setEventStartvoid setEventStart(String newEventStart) Set the value for EventStart. (Start event.) This value is optional.- Parameters:
- newEventStart- the new value for EventStart.
- 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.
 
 - 
setEventStartParametervoid setEventStartParameter(String newEventStartParameter) Set the value for EventStartParameter. (Start event parameter.) This value is optional.- Parameters:
- newEventStartParameter- the new value for EventStartParameter.
- 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.
 
 - 
setProcessTypevoid setProcessType(String newProcessType) Set the value for ProcessType. (Process type.) This value is optional.- Parameters:
- newProcessType- the new value for ProcessType.
- 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.
 
 - 
setProcessTypeDescriptionvoid setProcessTypeDescription(String newProcessTypeDescription) Set the value for ProcessTypeDescription. (Optional process type description) This value is optional.- Parameters:
- newProcessTypeDescription- the new value for ProcessTypeDescription.
- 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.
 
 - 
setProcessVariantvoid setProcessVariant(String newProcessVariant) Set the value for ProcessVariant. (Process variant.) This value is optional.- Parameters:
- newProcessVariant- the new value for ProcessVariant.
- 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.
 
 - 
setProcessVariantDescriptionvoid setProcessVariantDescription(String newProcessVariantDescription) Set the value for ProcessVariantDescription. (Optional process variant description) This value is optional.- Parameters:
- newProcessVariantDescription- the new value for ProcessVariantDescription.
- 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.
 
 - 
setDeprecated1void setDeprecated1(String newDeprecated1) Set the value for Deprecated1. (Process instance.) This value is optional.- Parameters:
- newDeprecated1- the new value for Deprecated1.
- 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.
 
 - 
setEventEndvoid setEventEnd(String newEventEnd) Set the value for EventEnd. (End event.) This value is optional.- Parameters:
- newEventEnd- the new value for EventEnd.
- 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.
 
 - 
setEventEndParametervoid setEventEndParameter(String newEventEndParameter) Set the value for EventEndParameter. (End event parameter.) This value is optional.- Parameters:
- newEventEndParameter- the new value for EventEndParameter.
- 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.
 
 - 
setEventGreenvoid setEventGreen(String newEventGreen) Set the value for EventGreen. (Green event.) This value is optional.- Parameters:
- newEventGreen- the new value for EventGreen.
- 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.
 
 - 
setEventGreenParametervoid setEventGreenParameter(String newEventGreenParameter) Set the value for EventGreenParameter. (Green event parameter.) This value is optional.- Parameters:
- newEventGreenParameter- the new value for EventGreenParameter.
- 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.
 
 - 
setEventRedvoid setEventRed(String newEventRed) Set the value for EventRed. (Red event.) This value is optional.- Parameters:
- newEventRed- the new value for EventRed.
- 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.
 
 - 
setEventRedParametervoid setEventRedParameter(String newEventRedParameter) Set the value for EventRedParameter. (Red event parameter.) This value is optional.- Parameters:
- newEventRedParameter- the new value for EventRedParameter.
- 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.
 
 - 
setGreenEqualsRedvoid setGreenEqualsRed(boolean newGreenEqualsRed) Set the value for GreenEqualsRed. (Whether green event equals red.)- Parameters:
- newGreenEqualsRed- the new value for GreenEqualsRed.
- 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.
 
 - 
setOnErrorProcessTypevoid setOnErrorProcessType(String newOnErrorProcessType) Set the value for OnErrorProcessType. (Process type to call on error.) This value is optional.- Parameters:
- newOnErrorProcessType- the new value for OnErrorProcessType.
- 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.
 
 - 
setOnErrorProcessVariantvoid setOnErrorProcessVariant(String newOnErrorProcessVariant) Set the value for OnErrorProcessVariant. (Process variant to call on error.) This value is optional.- Parameters:
- newOnErrorProcessVariant- the new value for OnErrorProcessVariant.
- 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.
 
 - 
setMaxNumberOfRestartsvoid setMaxNumberOfRestarts(Long newMaxNumberOfRestarts) Set the value for MaxNumberOfRestarts. (Max number of restarts.) This value is mandatory.- Parameters:
- newMaxNumberOfRestarts- the new value for MaxNumberOfRestarts. 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.
 
 - 
setDeprecated2void setDeprecated2(Long newDeprecated2) Set the value for Deprecated2. (This attribute is deprecated and no longer in use.) This value is mandatory.- Parameters:
- newDeprecated2- the new value for Deprecated2. 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.
 
 - 
setRestartDelayvoid setRestartDelay(Long newRestartDelay) Set the value for RestartDelay. (Delay between restarts.) This value is mandatory.- Parameters:
- newRestartDelay- the new value for RestartDelay. 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.
 
 - 
setRestartDelayUnitsvoid setRestartDelayUnits(TimeUnit newRestartDelayUnits) Set the value for RestartDelayUnits. (Time units for 'restart delay amount' - seconds, minutes, hours, days. May not be null, defaults to minutes) This value is mandatory.- Parameters:
- newRestartDelayUnits- the new value for RestartDelayUnits. 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.
 
 - 
setRestartUncheckedvoid setRestartUnchecked(boolean newRestartUnchecked) Set the value for RestartUnchecked. (Ignore SAP Restart Settings. Your process chain can be repeatable or repairable in SAP; this attribute allows you to ignore the setting in SAP.)- Parameters:
- newRestartUnchecked- the new value for RestartUnchecked.
- 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.
 
 - 
getSAPProcessChainSAPProcessChain getSAPProcessChain() Get the SAPProcessChain.- Returns:
- SAPProcessChain
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getSAPProcessRestartsRWIterable<SAPProcessRestart> getSAPProcessRestarts() Get anRWIterableover an ordered collection ofSAPProcessRestarts. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Process restart.- Specified by:
- getSAPProcessRestartsin interface- SAPProcessDefinitionComp
- Returns:
- An RWIterableover an ordered collection ofSAPProcessRestartobjects .
 
 - 
createSAPProcessRestartSAPProcessRestart createSAPProcessRestart() Create a newSAPProcessRestartlinked to this object.- Returns:
- a new SAPProcessRestart.
 
 - 
getSAPProcessRestartByJobSAPProcessRestart getSAPProcessRestartByJob(Job job) Get the SAPProcessRestart by JobSAPProcessDefinition.- Parameters:
- job-
- Returns:
- the SAPProcessRestart, or nullif it could not be found
 
 
- 
 
-