|
|
|
@ -50,7 +50,6 @@ public class DagHelper {
|
|
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(DagHelper.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* generate flow node relation list by task node list; |
|
|
|
|
* Edges that are not in the task Node List will not be added to the result |
|
|
|
@ -110,7 +109,7 @@ public class DagHelper {
|
|
|
|
|
List<TaskNode> childNodeList = new ArrayList<>(); |
|
|
|
|
if (startNode == null) { |
|
|
|
|
logger.error("start node name [{}] is not in task node list [{}] ", |
|
|
|
|
startNodeCode, |
|
|
|
|
startNodeCode, |
|
|
|
|
taskNodeList |
|
|
|
|
); |
|
|
|
|
continue; |
|
|
|
@ -135,7 +134,6 @@ public class DagHelper {
|
|
|
|
|
return destTaskNodeList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* find all the nodes that depended on the start node |
|
|
|
|
* |
|
|
|
@ -160,7 +158,6 @@ public class DagHelper {
|
|
|
|
|
return resultList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* find all nodes that start nodes depend on. |
|
|
|
|
* |
|
|
|
@ -310,6 +307,10 @@ public class DagHelper {
|
|
|
|
|
} |
|
|
|
|
for (String subsequent : startVertexes) { |
|
|
|
|
TaskNode taskNode = dag.getNode(subsequent); |
|
|
|
|
if (taskNode == null) { |
|
|
|
|
logger.error("taskNode {} is null, please check dag", subsequent); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if (isTaskNodeNeedSkip(taskNode, skipTaskNodeList)) { |
|
|
|
|
setTaskNodeSkip(subsequent, dag, completeTaskList, skipTaskNodeList); |
|
|
|
|
continue; |
|
|
|
@ -343,7 +344,6 @@ public class DagHelper {
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* parse condition task find the branch process |
|
|
|
|
* set skip flag for another one. |
|
|
|
@ -382,9 +382,6 @@ public class DagHelper {
|
|
|
|
|
/** |
|
|
|
|
* parse condition task find the branch process |
|
|
|
|
* set skip flag for another one. |
|
|
|
|
* |
|
|
|
|
* @param nodeCode |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public static List<String> parseSwitchTask(String nodeCode, |
|
|
|
|
Map<String, TaskNode> skipTaskNodeList, |
|
|
|
@ -443,7 +440,6 @@ public class DagHelper {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
* build dag graph |
|
|
|
|
* @param processDag processDag |
|
|
|
|