File tree 2 files changed +8
-4
lines changed
example/example-infra-flow/src/main/java/com/codingapi/example/repository
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,12 @@ public FlowWork getFlowWorkByProcessId(String processId) {
31
31
return null ;
32
32
}
33
33
FlowBackup flowBackup = flowBackupRepository .getFlowBackupById (flowProcess .getBackupId ());
34
- if (flowBackup !=null ) {
35
- return flowBackup .resume (flowOperatorRepository );
34
+ if (flowBackup != null ) {
35
+ try {
36
+ return flowBackup .resume (flowOperatorRepository );
37
+ }catch (Exception e ){
38
+ return null ;
39
+ }
36
40
}
37
41
return null ;
38
42
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public FlowWork getFlowWorkById(long id) {
49
49
entity .getCreateTime (),
50
50
entity .getUpdateTime (),
51
51
entity .getEnable (),
52
- entity .getSkipIfSameApprover (),
52
+ entity .getSkipIfSameApprover () != null && entity . getSkipIfSameApprover () ,
53
53
entity .getPostponedMax (),
54
54
flowNodes ,
55
55
flowRelations ,
@@ -82,7 +82,7 @@ public FlowWork getFlowWorkByCode(String code) {
82
82
entity .getCreateTime (),
83
83
entity .getUpdateTime (),
84
84
entity .getEnable (),
85
- entity .getSkipIfSameApprover (),
85
+ entity .getSkipIfSameApprover () != null && entity . getSkipIfSameApprover () ,
86
86
entity .getPostponedMax (),
87
87
flowNodes ,
88
88
flowRelations ,
You can’t perform that action at this time.
0 commit comments