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
f2b1247d
Commit
f2b1247d
authored
Dec 14, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布工作流的时候保存工作流的内嵌层级
parent
9a797cf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+7
-6
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
f2b1247d
...
@@ -151,7 +151,14 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -151,7 +151,14 @@ public class ApiFlowServiceImpl implements ApiFlowService {
private
Flow
saveFlow
(
PluginFlow
pluginFlow
,
Integer
workspaceId
,
boolean
isInnner
,
String
upFlowName
)
throws
Exception
{
private
Flow
saveFlow
(
PluginFlow
pluginFlow
,
Integer
workspaceId
,
boolean
isInnner
,
String
upFlowName
)
throws
Exception
{
//拼装工作流名称
//拼装工作流名称
upFlowName
=
String
.
format
(
"%s:%s"
,
upFlowName
,
pluginFlow
.
getName
());
upFlowName
=
String
.
format
(
"%s:%s"
,
upFlowName
,
pluginFlow
.
getName
());
Flow
flow
=
new
Flow
();
Flow
flow
=
new
Flow
();
FlowExtendedConfiguration
extendedConfiguration
=
pluginFlow
.
getConfig
().
getExtendedConfiguration
();
if
(
extendedConfiguration
==
null
)
{
extendedConfiguration
=
new
FlowExtendedConfiguration
();
}
extendedConfiguration
.
setFlowEmbedLogo
(
upFlowName
);
flow
.
setExtendedConfiguration
(
JSON
.
toJSONString
(
extendedConfiguration
));
flow
.
setFlowName
(
pluginFlow
.
getName
());
flow
.
setFlowName
(
pluginFlow
.
getName
());
flow
.
setIsInner
(
isInnner
?
"0"
:
"1"
);
flow
.
setIsInner
(
isInnner
?
"0"
:
"1"
);
flow
.
setFlowNodeCount
(
pluginFlow
.
getNodeList
().
size
());
flow
.
setFlowNodeCount
(
pluginFlow
.
getNodeList
().
size
());
...
@@ -207,12 +214,6 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -207,12 +214,6 @@ public class ApiFlowServiceImpl implements ApiFlowService {
Integer
flowId
=
flowMapper
.
insertSelective
(
flow
);
Integer
flowId
=
flowMapper
.
insertSelective
(
flow
);
saveNode
(
pluginFlow
.
getNodeList
(),
flow
,
upFlowName
);
saveNode
(
pluginFlow
.
getNodeList
(),
flow
,
upFlowName
);
}
}
FlowExtendedConfiguration
extendedConfiguration
=
pluginFlow
.
getConfig
().
getExtendedConfiguration
();
if
(
extendedConfiguration
==
null
)
{
extendedConfiguration
=
new
FlowExtendedConfiguration
();
}
extendedConfiguration
.
setFlowEmbedLogo
(
upFlowName
);
flow
.
setExtendedConfiguration
(
JSON
.
toJSONString
(
extendedConfiguration
));
return
flow
;
return
flow
;
}
}
...
...
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