public interface ProcessScheduler
Modifier and Type | Method and Description |
---|---|
void |
addScheduleProcess(Entity rProcessDescription)
Adds the schedule process defined by the Entity to the management of the
scheduler.
|
Entity |
getScheduleProcessUser()
Must be implemented by subclasses to provide access to the entity to be
used as the schedule process user.
|
boolean |
isProcessSchedulingEnabled()
Returns TRUE if the process scheduler is enabled and FALSE otherwise.
|
void |
notifyScheduleProcessChanged()
Notify about a change or edit of a schedule process.
|
void |
notifyScheduleProcessFinished(Process rProcess)
Notify about a schedule process that has finished execution.
|
void |
notifyScheduleProcessStarting(Process rProcess)
Notify about a schedule process that is about to start execution.
|
void |
removeScheduleProcess(java.lang.String sEntityId)
Removes the process from the management of the scheduler.
|
void |
resumeProcess(java.lang.Class<? extends ProcessDefinition> rProcessDefinitionClass)
Resumes the execution of a process if it is currently suspended.
|
void |
resumeScheduleProcess(java.lang.String sEntityId)
Resumes the process defined by the Entity-Id.
|
void |
runScheduleProcessNow(java.lang.String sEntityId)
Runs the process defined by the Entity immediately.
|
void |
suspendScheduleProcess(java.lang.String sEntityId)
Stops the schedule process and suspends the execution of this process
until resumeScheduleProcess is called.
|
void addScheduleProcess(Entity rProcessDescription)
rProcessDescription
- The Entity that defines the schedule process.Entity getScheduleProcessUser()
boolean isProcessSchedulingEnabled()
void notifyScheduleProcessChanged()
void notifyScheduleProcessFinished(Process rProcess)
rProcess
- The schedule process that has finishedvoid notifyScheduleProcessStarting(Process rProcess)
rProcess
- The schedule process that is startingvoid removeScheduleProcess(java.lang.String sEntityId)
sEntityId
- ProcessDescription the Entity that defines the schedule
processvoid resumeProcess(java.lang.Class<? extends ProcessDefinition> rProcessDefinitionClass)
rProcessDefinitionClass
- The process description of the schedule
processvoid resumeScheduleProcess(java.lang.String sEntityId)
sEntityId
- The Id of the Entity that defines the process.void runScheduleProcessNow(java.lang.String sEntityId)
sEntityId
- rProcessDescription The Entity that defines the schedule
process.void suspendScheduleProcess(java.lang.String sEntityId)
sEntityId
- The Id of the Entity that defines the process.