|
|
@ -2208,14 +2208,14 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatus> { |
|
|
|
|
|
|
|
|
|
|
|
// remove task instance from taskInstanceMap, completeTaskSet, validTaskMap, errorTaskMap
|
|
|
|
// remove task instance from taskInstanceMap, completeTaskSet, validTaskMap, errorTaskMap
|
|
|
|
// completeTaskSet remove dependency taskInstanceMap, so the sort can't change
|
|
|
|
// completeTaskSet remove dependency taskInstanceMap, so the sort can't change
|
|
|
|
completeTaskSet.removeIf(set -> { |
|
|
|
completeTaskSet.removeIf(taskCode -> { |
|
|
|
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(set); |
|
|
|
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(taskCode); |
|
|
|
return existTaskInstanceOptional |
|
|
|
return existTaskInstanceOptional |
|
|
|
.filter(taskInstance -> dag.containsNode(Integer.toString(taskInstance.getId()))).isPresent(); |
|
|
|
.filter(taskInstance -> dag.containsNode(Long.toString(taskInstance.getTaskCode()))).isPresent(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
taskInstanceMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getValue().getTaskCode()))); |
|
|
|
taskInstanceMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getValue().getTaskCode()))); |
|
|
|
validTaskMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getKey()))); |
|
|
|
validTaskMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getKey()))); |
|
|
|
errorTaskMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getKey()))); |
|
|
|
errorTaskMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getKey()))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void saveCacheTaskInstance(TaskInstance taskInstance) { |
|
|
|
private void saveCacheTaskInstance(TaskInstance taskInstance) { |
|
|
|