Commit c88f694c by tiger

节点执行流程,已完成。

1 parent f87321bc
...@@ -109,21 +109,25 @@ public class SopInstNodeExecuteJobHandler { ...@@ -109,21 +109,25 @@ public class SopInstNodeExecuteJobHandler {
// 执行sop节点前,锁定sop // 执行sop节点前,锁定sop
if (SopHelper.lockInst(sop.getInst())) { if (SopHelper.lockInst(sop.getInst())) {
try { try {
// 重新加载sop if (node.getNodeSkip() != 1) {
sop = reloadAndCreateBatch(sop, node); // 重新加载sop
sop = reloadAndCreateBatch(sop, node);
// 预备执行参数 // 预备执行参数
SnapshotStruct snapshotStruct = instance.prepare(sop, node); SnapshotStruct snapshotStruct = instance.prepare(sop, node);
// 执行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!