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
29be452c
Commit
29be452c
authored
Apr 27, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
73c49b51
91175c11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+2
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
29be452c
...
@@ -137,7 +137,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -137,7 +137,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
flow
.
setWorkspaceId
(
workspaceId
);
flow
.
setWorkspaceId
(
workspaceId
);
flow
.
setStartUp
(
FlowPropertyEnum
.
IS_START
.
getCode
());
flow
.
setStartUp
(
FlowPropertyEnum
.
IS_START
.
getCode
());
flow
.
setExecType
(
pluginFlow
.
getConfig
().
getExecType
());
flow
.
setExecType
(
pluginFlow
.
getConfig
().
getExecType
());
flow
.
setPriority
(
pluginFlow
.
getConfig
().
getPriority
());
flow
.
setPriority
(
StringUtils
.
isEmpty
(
pluginFlow
.
getConfig
().
getPriority
())
||
!
"2"
.
equals
(
pluginFlow
.
getConfig
().
getPriority
())
?
"1"
:
pluginFlow
.
getConfig
().
getPriority
());
flow
.
setAlarmlAction
(
pluginFlow
.
getConfig
().
getAlarmlAction
());
flow
.
setAlarmlAction
(
pluginFlow
.
getConfig
().
getAlarmlAction
());
flow
.
setAlarmEmail
(
pluginFlow
.
getConfig
().
getAlarmEmail
());
flow
.
setAlarmEmail
(
pluginFlow
.
getConfig
().
getAlarmEmail
());
//设置可执行次数
//设置可执行次数
...
@@ -275,7 +275,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -275,7 +275,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
node
.
setTriggerNextTime
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getNodeCron
())
?
null
:
new
CronExpression
(((
PluginNode
)
pluginNode
).
getConfig
().
getNodeCron
()).
getNextValidTimeAfter
(
new
Date
()).
getTime
());
node
.
setTriggerNextTime
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getNodeCron
())
?
null
:
new
CronExpression
(((
PluginNode
)
pluginNode
).
getConfig
().
getNodeCron
()).
getNextValidTimeAfter
(
new
Date
()).
getTime
());
node
.
setPluginUrls
(((
PluginNode
)
pluginNode
).
getConfig
().
getPluginUrls
());
node
.
setPluginUrls
(((
PluginNode
)
pluginNode
).
getConfig
().
getPluginUrls
());
node
.
setRoutingStrategy
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getRoutingStrategy
())
?
"RANDOM"
:
((
PluginNode
)
pluginNode
).
getConfig
().
getRoutingStrategy
());
node
.
setRoutingStrategy
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getRoutingStrategy
())
?
"RANDOM"
:
((
PluginNode
)
pluginNode
).
getConfig
().
getRoutingStrategy
());
node
.
setPriority
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getPriority
())
?
"1"
:
((
PluginNode
)
pluginNode
).
getConfig
().
getPriority
());
node
.
setPriority
(
StringUtils
.
isEmpty
(((
PluginNode
)
pluginNode
).
getConfig
().
getPriority
())
||
!
"2"
.
equals
(((
PluginNode
)
pluginNode
).
getConfig
().
getPriority
())
?
"1"
:
((
PluginNode
)
pluginNode
).
getConfig
().
getPriority
());
node
.
setScriptUrls
(((
PluginNode
)
pluginNode
).
getScriptUrls
());
node
.
setScriptUrls
(((
PluginNode
)
pluginNode
).
getScriptUrls
());
//设置失败重试
//设置失败重试
if
(
null
!=
((
PluginNode
)
pluginNode
).
getConfig
().
getFailedRetryCount
()){
if
(
null
!=
((
PluginNode
)
pluginNode
).
getConfig
().
getFailedRetryCount
()){
...
...
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