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
22fb6b10
Commit
22fb6b10
authored
Dec 18, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'developer' and 'test' of
https://git.byitgroup.com/liyuan/byit-myth-job
into test
parents
13f273d5
fbdcc92d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+6
-2
RpcCallbackInstanceRunTheLifeCycleCallback.java
...instances/RpcCallbackInstanceRunTheLifeCycleCallback.java
+1
-1
RunRecordingRunRedisRemoveTheLifeCycleCallback.java
...ances/RunRecordingRunRedisRemoveTheLifeCycleCallback.java
+1
-1
WorkflowCommonParameterAggregation.java
...trategy/instances/WorkflowCommonParameterAggregation.java
+1
-1
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+1
-1
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
22fb6b10
...
@@ -187,9 +187,14 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -187,9 +187,14 @@ public class ApiFlowServiceImpl implements ApiFlowService {
//设置超时时间,未设置默认5天
//设置超时时间,未设置默认5天
flow
.
setFlowTimeout
(
null
==
pluginFlow
.
getConfig
().
getFlowTimeout
()
?
TimeUnit
.
DAYS
.
toMillis
(
5
)
:
pluginFlow
.
getConfig
().
getFlowTimeout
());
flow
.
setFlowTimeout
(
null
==
pluginFlow
.
getConfig
().
getFlowTimeout
()
?
TimeUnit
.
DAYS
.
toMillis
(
5
)
:
pluginFlow
.
getConfig
().
getFlowTimeout
());
Flow
oldFlow
=
flowMapper
.
getByWorkSpaceAndName
(
workspaceId
,
pluginFlow
.
getName
());
Flow
oldFlow
=
flowMapper
.
getByWorkSpaceAndName
(
workspaceId
,
pluginFlow
.
getName
());
String
versionName
=
pluginFlow
.
getVersionName
();
if
(
StringUtils
.
isNoneBlank
(
versionName
))
{
FlowVersion
byWorkSpaceAndName
=
flowVersionMapper
.
getByWorkSpaceAndName
(
workspaceId
,
flow
.
getFlowName
(),
versionName
);
ValidationUtil
.
isTrueValidation
(
byWorkSpaceAndName
!=
null
,
"该工作流版本已经存在,请联系调度团队!"
);
}
//判断是否是重发
//判断是否是重发
if
((
pluginFlow
.
isRePublish
()
&&
!
isInnner
)
||
(
isInnner
&&
null
!=
oldFlow
))
{
if
((
pluginFlow
.
isRePublish
()
&&
!
isInnner
)
||
(
isInnner
&&
null
!=
oldFlow
))
{
String
versionName
=
pluginFlow
.
getVersionName
();
flow
.
setFlowId
(
oldFlow
.
getFlowId
());
flow
.
setFlowId
(
oldFlow
.
getFlowId
());
//当版本号不存在
//当版本号不存在
if
(
StringUtils
.
isBlank
(
versionName
))
{
if
(
StringUtils
.
isBlank
(
versionName
))
{
...
@@ -204,7 +209,6 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -204,7 +209,6 @@ public class ApiFlowServiceImpl implements ApiFlowService {
updateNodeByFlow
(
pluginFlow
.
getNodeList
(),
flow
,
upFlowName
);
updateNodeByFlow
(
pluginFlow
.
getNodeList
(),
flow
,
upFlowName
);
}
else
{
}
else
{
String
versionName
=
pluginFlow
.
getVersionName
();
if
(
StringUtils
.
isBlank
(
versionName
))
{
if
(
StringUtils
.
isBlank
(
versionName
))
{
flow
.
setVersionName
(
JobVersionGenUtil
.
generateVersionName
(
1
));
flow
.
setVersionName
(
JobVersionGenUtil
.
generateVersionName
(
1
));
}
else
{
}
else
{
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/instances/RpcCallbackInstanceRunTheLifeCycleCallback.java
View file @
22fb6b10
...
@@ -32,7 +32,7 @@ import java.util.Map;
...
@@ -32,7 +32,7 @@ import java.util.Map;
*/
*/
@Component
@Component
@Slf4j
@Slf4j
@MythRankOrder
(
2
)
@MythRankOrder
(
3
)
public
class
RpcCallbackInstanceRunTheLifeCycleCallback
implements
InstanceRunTheLifeCycleCallback
{
public
class
RpcCallbackInstanceRunTheLifeCycleCallback
implements
InstanceRunTheLifeCycleCallback
{
@TaskClient
(
timeout
=
60000
,
callMethodEnum
=
CallMethodEnum
.
SYNCHRONIZE
)
@TaskClient
(
timeout
=
60000
,
callMethodEnum
=
CallMethodEnum
.
SYNCHRONIZE
)
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/instances/RunRecordingRunRedisRemoveTheLifeCycleCallback.java
View file @
22fb6b10
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Component;
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Component;
*/
*/
@Component
@Component
@Slf4j
@Slf4j
@MythRankOrder
(
1000
)
@MythRankOrder
(
4
)
public
class
RunRecordingRunRedisRemoveTheLifeCycleCallback
implements
InstanceRunTheLifeCycleCallback
{
public
class
RunRecordingRunRedisRemoveTheLifeCycleCallback
implements
InstanceRunTheLifeCycleCallback
{
private
final
StringRedisTemplate
stringRedisTemplate
;
private
final
StringRedisTemplate
stringRedisTemplate
;
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/instances/WorkflowCommonParameterAggregation.java
View file @
22fb6b10
...
@@ -24,7 +24,7 @@ import java.util.Map;
...
@@ -24,7 +24,7 @@ import java.util.Map;
*/
*/
@Component
@Component
@Slf4j
@Slf4j
@MythRankOrder
(
5
)
@MythRankOrder
(
2
)
public
class
WorkflowCommonParameterAggregation
implements
InstanceRunTheLifeCycleCallback
{
public
class
WorkflowCommonParameterAggregation
implements
InstanceRunTheLifeCycleCallback
{
private
final
StringRedisTemplate
stringRedisTemplate
;
private
final
StringRedisTemplate
stringRedisTemplate
;
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/RunRecordingMapper.xml
View file @
22fb6b10
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from run_recording
from run_recording
where
flow_status = '2' and
schedule_type != 4
where schedule_type != 4
</select>
</select>
<select
id=
"findNoEnd"
parameterType=
"com.byit.dto.FlowConditionDto"
resultMap=
"BaseResultMap"
>
<select
id=
"findNoEnd"
parameterType=
"com.byit.dto.FlowConditionDto"
resultMap=
"BaseResultMap"
>
...
...
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