public interface JobsService
JobsService provides an entry point for working with different types of jobs
that are meant by default to run in background.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCancels given jobReturns actual schedule time for the next expiration of given jobscheduleProcessInstanceJob(ProcessInstanceJobDescription description) Schedules process instance related job that will signal exact same process instance upon expiration time.scheduleProcessJob(ProcessJobDescription description) Schedules process job that is responsible for starting new process instances based on the given description.
-
Method Details
-
scheduleProcessJob
Schedules process job that is responsible for starting new process instances based on the given description.- Parameters:
description- defines what kind of process should be started upon expiration time- Returns:
- returns unique id of the job
-
scheduleProcessInstanceJob
Schedules process instance related job that will signal exact same process instance upon expiration time.- Parameters:
description- defines the context of the process instance that should be signaled- Returns:
- returns unique id of the job
-
cancelJob
Cancels given job- Parameters:
id- unique id of the job- Returns:
- returns true if the cancellation was successful, otherwise false
-
getScheduledTime
Returns actual schedule time for the next expiration of given job- Parameters:
id- unique id of the job- Returns:
- returns actual expiration time for the job
-