Commit c88f694c by tiger

节点执行流程,已完成。

1 parent f87321bc
......@@ -109,21 +109,25 @@ public class SopInstNodeExecuteJobHandler {
// 执行sop节点前,锁定sop
if (SopHelper.lockInst(sop.getInst())) {
try {
// 重新加载sop
sop = reloadAndCreateBatch(sop, node);
if (node.getNodeSkip() != 1) {
// 重新加载sop
sop = reloadAndCreateBatch(sop, node);
// 预备执行参数
SnapshotStruct snapshotStruct = instance.prepare(sop, node);
// 预备执行参数
SnapshotStruct snapshotStruct = instance.prepare(sop, node);
// 执行sop节点
RunResult result = instance.execute(sop, node, snapshotStruct);
// 执行sop节点
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);
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!