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
ca2722d2
Commit
ca2722d2
authored
Apr 08, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加工作流实例 加载状态
parent
46e550a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
RunRecordingEnum.java
...n-core/src/main/java/com/byit/enums/RunRecordingEnum.java
+1
-0
RunRecording.java
...admin-core/src/main/java/com/byit/model/RunRecording.java
+2
-2
RunRecordingServiceImpl.java
...n/java/com/byit/service/impl/RunRecordingServiceImpl.java
+3
-2
RunRecordingAndJobTaskServiceImpl.java
...ce/mapservice/impl/RunRecordingAndJobTaskServiceImpl.java
+1
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/enums/RunRecordingEnum.java
View file @
ca2722d2
...
@@ -15,6 +15,7 @@ public enum RunRecordingEnum {
...
@@ -15,6 +15,7 @@ public enum RunRecordingEnum {
,
FLOW_STATUS_RUN_ING
(
"2"
,
"工作流运行中"
)
,
FLOW_STATUS_RUN_ING
(
"2"
,
"工作流运行中"
)
,
FLOW_STATUS_IS_STOP
(
"3"
,
"工作流被暂停"
)
,
FLOW_STATUS_IS_STOP
(
"3"
,
"工作流被暂停"
)
,
FLOW_STATUS_IS_END
(
"4"
,
"工作流已经完结"
)
,
FLOW_STATUS_IS_END
(
"4"
,
"工作流已经完结"
)
,
FLOW_STATUS_IS_LOAD
(
"5"
,
"工作流已经被加载"
)
,
FAIL_FAST_NO
(
"0"
,
"不快速失败"
)
,
FAIL_FAST_NO
(
"0"
,
"不快速失败"
)
,
FAIL_FAST_YES
(
"1"
,
"快速失败"
)
,
FAIL_FAST_YES
(
"1"
,
"快速失败"
)
;
;
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/model/RunRecording.java
View file @
ca2722d2
...
@@ -56,9 +56,9 @@ public class RunRecording implements Serializable {
...
@@ -56,9 +56,9 @@ public class RunRecording implements Serializable {
private
String
flowRunResult
;
private
String
flowRunResult
;
/**
/**
* 运行状态 1 未开始 2运行中 3暂停 4完成
* 运行状态 1 未开始 2运行中 3暂停 4完成
5.已加载
*/
*/
@ApiModelProperty
(
"运行状态 1 未开始 2运行中 3暂停 4完成"
)
@ApiModelProperty
(
"运行状态 1 未开始 2运行中 3暂停 4完成
5.已加载
"
)
private
String
flowStatus
;
private
String
flowStatus
;
/**
/**
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunRecordingServiceImpl.java
View file @
ca2722d2
...
@@ -49,8 +49,9 @@ public class RunRecordingServiceImpl implements RunRecordingService {
...
@@ -49,8 +49,9 @@ public class RunRecordingServiceImpl implements RunRecordingService {
List
<
RunRecording
>
runRecordings
=
runRecordingMapper
.
findRunRecordingByFlowId
(
flowId
);
List
<
RunRecording
>
runRecordings
=
runRecordingMapper
.
findRunRecordingByFlowId
(
flowId
);
for
(
RunRecording
runRecording
:
runRecordings
)
{
for
(
RunRecording
runRecording
:
runRecordings
)
{
//判断当前的实例 中是否有 未完成的
//判断当前的实例 中是否有 未完成的
if
(
RunRecordingEnum
.
FLOW_STATUS_RUN_ING
.
getCode
().
equals
(
runRecording
.
getFlowStatus
())
&&
if
(
RunRecordingEnum
.
FLOW_STATUS_RUN_ING
.
getCode
().
equals
(
runRecording
.
getFlowStatus
())
||
RunRecordingEnum
.
FLOW_STATUS_IS_STOP
.
getCode
().
equals
(
runRecording
.
getFlowStatus
()))
{
RunRecordingEnum
.
FLOW_STATUS_IS_STOP
.
getCode
().
equals
(
runRecording
.
getFlowStatus
())
||
RunRecordingEnum
.
FLOW_STATUS_IS_LOAD
.
getCode
().
equals
(
runRecording
.
getFlowStatus
()))
{
return
true
;
return
true
;
}
}
}
}
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/mapservice/impl/RunRecordingAndJobTaskServiceImpl.java
View file @
ca2722d2
...
@@ -147,7 +147,7 @@ public class RunRecordingAndJobTaskServiceImpl implements RunRecordingAndJobTask
...
@@ -147,7 +147,7 @@ public class RunRecordingAndJobTaskServiceImpl implements RunRecordingAndJobTask
log
.
info
(
"---------开始查询等待工作流{}对应的数据-------------"
,
waitingRecord
);
log
.
info
(
"---------开始查询等待工作流{}对应的数据-------------"
,
waitingRecord
);
RunRecording
runRecording
=
runRecordingService
.
findAllByRunID
(
waitingRecord
.
getRunId
());
RunRecording
runRecording
=
runRecordingService
.
findAllByRunID
(
waitingRecord
.
getRunId
());
//将运行实例改为以执行
//将运行实例改为以执行
runRecording
.
setFlowStatus
(
RunRecordingEnum
.
FLOW_STATUS_
RUN_ING
.
getCode
());
runRecording
.
setFlowStatus
(
RunRecordingEnum
.
FLOW_STATUS_
IS_LOAD
.
getCode
());
runRecordingService
.
updateRunRecordingById
(
runRecording
);
runRecordingService
.
updateRunRecordingById
(
runRecording
);
log
.
info
(
"-------修改运行实例表成功,查询对应等待实例{},的等待节点-------"
,
waitingRecord
);
log
.
info
(
"-------修改运行实例表成功,查询对应等待实例{},的等待节点-------"
,
waitingRecord
);
List
<
WaitingTask
>
allByWaitId
=
taskService
.
findAllByWaitId
(
waitingRecord
.
getWaitId
());
List
<
WaitingTask
>
allByWaitId
=
taskService
.
findAllByWaitId
(
waitingRecord
.
getWaitId
());
...
...
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