Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c88f694c
authored
Sep 21, 2023
by
tiger
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
节点执行流程,已完成。
1 parent
f87321bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstNodeExecuteJobHandler.java
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstNodeExecuteJobHandler.java
View file @
c88f694
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment