Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
b16b345a
Commit
b16b345a
authored
Oct 12, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加工作流校验
parent
6d105cf6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ApiFlowOperatingServiceImpl.java
...va/com/byit/service/impl/ApiFlowOperatingServiceImpl.java
+3
-3
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowOperatingServiceImpl.java
View file @
b16b345a
...
...
@@ -70,8 +70,8 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
@Override
public
void
specialRunBatch
(
SpecialJobParam
specialJobParam
)
{
//获取操作人
//
String operator = currentUserUtils.account();
String
operator
=
"huangfusuper"
;
String
operator
=
currentUserUtils
.
account
();
//String operator = "huangfusuper"
//生成本次补批的运行标识
String
runId
=
IDGenerationStrategy
.
runIdGenerationStrategy
(
serverPort
);
//工作空间名称
...
...
@@ -99,7 +99,7 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
log
.
debug
(
"-----开始补批工作空间:{}下的工作流------"
,
workspace
);
//获取对应的工作流
Flow
flowByName
=
flowService
.
findFlowByName
(
flowName
,
workspace
.
getWorkspaceId
());
ValidationUtil
.
dataNotNull
(
workspac
e
,
String
.
format
(
"查询不到%s对应的工作流!"
,
flowName
));
ValidationUtil
.
dataNotNull
(
flowByNam
e
,
String
.
format
(
"查询不到%s对应的工作流!"
,
flowName
));
//查询对应工作流下的所由节点 当前版本
List
<
Node
>
nodeByFlowIdAndVersionName
=
nodeService
.
findNodeByFlowIdAndVersionName
(
flowByName
.
getFlowId
());
ValidationUtil
.
isTrueValidation
(
CollectionUtil
.
isEmpty
(
nodeByFlowIdAndVersionName
),
String
.
format
(
"查询到工作流%s下不存在任何节点!请联系调度中心人员!"
,
flowName
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment