Closed baisui1981 closed 8 months ago
https://github.com/PowerJob/PowerJob
利用powerJob 实现DAG任务定义:https://github.com/PowerJob/PowerJob/blob/805046dccbb9dbeb6a59b0fe12a3fe9f1beb9ae7/powerjob-client/src/test/java/tech/powerjob/client/test/TestWorkflow.java
// DAG 图
List<PEWorkflowDAG.Node> nodes = Lists.newLinkedList();
List<PEWorkflowDAG.Edge> edges = Lists.newLinkedList();
nodes.add(new PEWorkflowDAG.Node(nodeList.get(0).getId()));
nodes.add(new PEWorkflowDAG.Node(nodeList.get(1).getId()));
nodes.add(new PEWorkflowDAG.Node(nodeList.get(2).getId()));
edges.add(new PEWorkflowDAG.Edge(nodeList.get(0).getId(), nodeList.get(1).getId()));
edges.add(new PEWorkflowDAG.Edge(nodeList.get(1).getId(), nodeList.get(2).getId()));
PEWorkflowDAG peWorkflowDAG = new PEWorkflowDAG(nodes, edges);
97 has been referd
相关执行流程图