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 Type
    Method
    Description
    boolean
    Cancels given job
    Schedules process job that is responsible for starting new process instances based on the given description.
  • Method Details

    • scheduleJob

      String scheduleJob(JobDescription description)
      Schedules process job that is responsible for starting new process instances based on the given description.
      Parameters:
      context - of the job
      description - defines what kind of process should be started upon expiration time
      Returns:
      returns unique id of the job
    • cancelJob

      boolean cancelJob(String id)
      Cancels given job
      Parameters:
      id - unique id of the job
      Returns:
      returns true if the cancellation was successful, otherwise false