} catch (Exception e) {
LOG.error("节点: "+this.getName()+"("+this.getId()+") 在离开时,清理定时任务数据出错,错误信息: "+e.getMessage(),e);
throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_NODELEAVECLEANQUARTZ,this.getId(),this.getName(),e);
}
}
try {
if (StringUtil.getBoolean(Context.getProcessEngineConfiguration().getQuartzConfig().getIsEnable())) {
Scheduler scheduler = Context.getProcessEngineConfiguration().getSchedulerFactory().getScheduler();
Set<JobKey> jobKeys = new HashSet<JobKey>();
jobKeys = scheduler.getJobKeys(GroupMatcher.jobGroupContains(tokenEntity.getId()));
if (jobKeys.size() > 0) {
List<JobKey> jobKeysList = new ArrayList<JobKey>();
jobKeysList.addAll(jobKeys);
scheduler.deleteJobs(jobKeysList);
}
}
} catch (Exception e) {
LOG.error("节点: "+this.getName()+"("+this.getId()+") 在离开时,清理定时任务数据出错,错误信息: "+e.getMessage(),e);
throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_NODELEAVECLEANQUARTZ,this.getId(),this.getName(),e);
}