📄 canceljobactionhandler.java
字号:
package org.jbpm.delegation.action;
import org.apache.commons.logging.*;
import org.jbpm.*;
import org.jbpm.delegation.*;
public class CancelJobActionHandler implements ActionHandler, Configurable {
private String jobName = null;
public void execute(ExecutionContext executionContext) {
String reference = executionContext.getToken().getId().toString() + "-" + jobName;
log.debug( "cancelling jobs with reference '" + reference + "'" );
SchedulerService schedulerService = executionContext.getSchedulerService();
schedulerService.cancel( reference );
}
public void configure(String configuration) throws ConfigurationException {
jobName = configuration;
}
private static Log log = LogFactory.getLog(CancelJobActionHandler.class);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -