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 fb28ac4b
authored
Sep 25, 2023
by
tiger
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
node_status
1 parent
7c5ad90b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
19 deletions
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplNode.java
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstLoadJobHandler.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplNode.java
View file @
fb28ac4
...
...
@@ -98,12 +98,6 @@ public class SopTplNode {
private
Byte
nodeAsync
;
/**
* 节点状态:0,停用;1,启用;
*/
@Column
(
name
=
"node_status"
)
private
Integer
nodeStatus
;
/**
* 每日执行次数限制,0表示不限制。
*/
@Column
(
name
=
"daily_limit"
)
...
...
@@ -369,14 +363,6 @@ public class SopTplNode {
this
.
nodeAsync
=
nodeAsync
;
}
public
Integer
getNodeStatus
()
{
return
nodeStatus
;
}
public
void
setNodeStatus
(
Integer
nodeStatus
)
{
this
.
nodeStatus
=
nodeStatus
;
}
public
Integer
getDailyLimit
()
{
return
dailyLimit
;
}
...
...
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstLoadJobHandler.java
View file @
fb28ac4
...
...
@@ -35,15 +35,18 @@ public class SopInstLoadJobHandler {
inst
.
setInstStatus
((
byte
)
-
1
);
}
if
(
inst
.
getInstStatus
()
!=
1
)
{
if
(
inst
.
getInstStatus
()
==
1
)
{
// 启动sop任务
SopXxlJobUtil
.
initSopJob
(
inst
);
}
else
{
// 停止实例任务以及所有子任务
SopStruct
sop
=
sopService
.
loadSop
(
inst
.
getInstId
());
SopXxlJobUtil
.
pauseSop
(
sop
);
continue
;
}
// 启动sop任务
SopXxlJobUtil
.
initSopJob
(
inst
);
}
}
}
...
...
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