schedulerservice.java

来自「一个java工作流引擎」· Java 代码 · 共 28 行

JAVA
28
字号
package org.jbpm;

import org.jbpm.model.scheduler.*;

/**
 * is the interface for scheduling and cancelling jobs.  This service is used at process 
 * execution events. E.g. by through the {@link org.jbpm.delegation.ExecutionContext}
 */
public interface SchedulerService {
  
  /**
   * schedules a job.
   */
  void schedule( Job job );
  
  /**
   * 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.
   */
  void schedule( Job job, String reference );
  
  /**
   * cancels all scheduled jobs with the given reference.
   */
  void cancel( String reference );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?