Commit c88f694c by tiger

节点执行流程,已完成。

1 parent f87321bc
...@@ -109,6 +109,7 @@ public class SopInstNodeExecuteJobHandler { ...@@ -109,6 +109,7 @@ public class SopInstNodeExecuteJobHandler {
// 执行sop节点前,锁定sop // 执行sop节点前,锁定sop
if (SopHelper.lockInst(sop.getInst())) { if (SopHelper.lockInst(sop.getInst())) {
try { try {
if (node.getNodeSkip() != 1) {
// 重新加载sop // 重新加载sop
sop = reloadAndCreateBatch(sop, node); sop = reloadAndCreateBatch(sop, node);
...@@ -118,12 +119,15 @@ public class SopInstNodeExecuteJobHandler { ...@@ -118,12 +119,15 @@ public class SopInstNodeExecuteJobHandler {
// 执行sop节点 // 执行sop节点
RunResult result = instance.execute(sop, node, snapshotStruct); RunResult result = instance.execute(sop, node, snapshotStruct);
// 处理执行结果
snapshotStruct = instance.handleResult(sop, node, snapshotStruct, result); snapshotStruct = instance.handleResult(sop, node, snapshotStruct, result);
// 保存快照
updateBatch(sop, node, snapshotStruct); updateBatch(sop, node, snapshotStruct);
}
// 更新后续节点状态
updateNextNodes(sop, node); updateNextNodes(sop, node);
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!