Package org.kie.kogito.jobs
Interface JobsService
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 jobscheduleJob(JobDescription description) Schedules process job that is responsible for starting new process instances based on the given description.
-
Method Details
-
scheduleJob
Schedules process job that is responsible for starting new process instances based on the given description.- Parameters:
context- of the jobdescription- defines what kind of process should be started upon expiration time- 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
-