org.jbpm
Interface SchedulerService

All Superinterfaces:
Service

public interface SchedulerService
extends Service

is the interface for scheduling and cancelling jobs. This service is used at process execution events. E.g. by through the ExecutionContext


Method Summary
 void cancel(java.lang.String reference)
          cancels all scheduled jobs with the given reference.
 void schedule(Job job)
          schedules a job.
 void schedule(Job job, java.lang.String reference)
          schedules a job with a reference for cancellation.
 
Methods inherited from interface org.jbpm.Service
close
 

Method Detail

schedule

public void schedule(Job job)
schedules a job.


schedule

public void schedule(Job job,
                     java.lang.String reference)
schedules a job with a reference for cancellation. Make sure the reference is unique. (e.g. prefix it with the process-instance-id) When you cancel a job by reference, it cancels all jobs with the given reference.


cancel

public void cancel(java.lang.String reference)
cancels all scheduled jobs with the given reference.



Version : jbpm-2.0