|
|
|
@ -1419,8 +1419,11 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatue> {
|
|
|
|
|
*/ |
|
|
|
|
private void setIndirectDepList(String taskCode, List<String> indirectDepCodeList) { |
|
|
|
|
TaskNode taskNode = dag.getNode(taskCode); |
|
|
|
|
List<String> depCodeList = taskNode.getDepList(); |
|
|
|
|
for (String depsNode : depCodeList) { |
|
|
|
|
// If workflow start with startNode or recoveryNode, taskNode may be null
|
|
|
|
|
if (taskNode == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
for (String depsNode : taskNode.getDepList()) { |
|
|
|
|
if (forbiddenTaskMap.containsKey(Long.parseLong(depsNode))) { |
|
|
|
|
setIndirectDepList(depsNode, indirectDepCodeList); |
|
|
|
|
} else { |
|
|
|
|