Merge branch 'hotfix/node-alter' into pre
This commit is contained in:
commit
27f625f7b8
@ -69,16 +69,16 @@ public class NodeAlterJobHandler extends IJobHandler {
|
||||
jobs.forEach(e -> {
|
||||
XxlJobHelper.log("start execution of job: {}", JSON.toJSONString(e));
|
||||
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(e.getProcessInstanceId()).singleResult();
|
||||
if (Objects.isNull(processInstance)) {
|
||||
executedJobs.add(e);
|
||||
return;
|
||||
}
|
||||
if (!refreshProperties.getAlterAllDefinitionKey()) {
|
||||
if (!ListUtils.emptyIfNull(refreshProperties.getAlterDefinitionKeys()).contains(processInstance.getProcessDefinitionKey())) {
|
||||
XxlJobHelper.log("skip alter by config");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (Objects.isNull(processInstance)) {
|
||||
executedJobs.add(e);
|
||||
return;
|
||||
}
|
||||
List<Task> tasks = taskService.createTaskQuery()
|
||||
.processInstanceId(e.getProcessInstanceId())
|
||||
.taskDefinitionKey(e.getActivityId())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user