Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
12fcc6cc
Commit
12fcc6cc
authored
Mar 13, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改下一节点无审核人时,提升内容多余显示类,需要同步升级工作流
parent
0f926ac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
CmWorkflowServiceImpl.java
...oot/module/jg/biz/service/impl/CmWorkflowServiceImpl.java
+16
-6
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CmWorkflowServiceImpl.java
View file @
12fcc6cc
...
...
@@ -13,6 +13,8 @@ import com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO;
import
com.yeejoin.amos.feign.workflow.model.TaskResultDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -44,8 +46,7 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
processTasks
=
Workflow
.
taskV2Client
.
startForBatch
(
params
).
getResult
();
}
catch
(
InnerInvokException
e
)
{
//拦截无审核人异常信息
String
devMessage
=
e
.
getDevMessage
();
devMessage
=
devMessage
.
contains
(
";"
)
?
devMessage
.
split
(
";"
)[
0
]
:
devMessage
;
String
devMessage
=
getErrorMessage
(
e
);
log
.
error
(
devMessage
);
throw
new
LocalBadRequest
(
devMessage
);
}
catch
(
Exception
e
)
{
...
...
@@ -55,6 +56,17 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
return
processTasks
;
}
private
String
getErrorMessage
(
BaseException
e
){
String
devMessage
=
e
.
getDevMessage
();
if
(
devMessage
.
contains
(
";"
)){
String
tempMsg
=
devMessage
.
split
(
";"
)[
0
];
if
(
tempMsg
.
split
(
":"
).
length
>
0
){
devMessage
=
tempMsg
.
split
(
":"
)[
1
];
}
}
return
devMessage
;
}
@Override
public
ProcessTaskDTO
completeOrReject
(
String
taskId
,
TaskResultDTO
data
,
String
operate
)
{
ProcessTaskDTO
processTaskDTO
;
...
...
@@ -74,8 +86,7 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
}
}
catch
(
InnerInvokException
e
)
{
//拦截无审核人异常信息
String
devMessage
=
e
.
getDevMessage
();
devMessage
=
devMessage
.
contains
(
";"
)
?
devMessage
.
split
(
";"
)[
0
]
:
devMessage
;
String
devMessage
=
getErrorMessage
(
e
);
log
.
error
(
devMessage
);
throw
new
LocalBadRequest
(
devMessage
);
}
catch
(
Exception
e
)
{
...
...
@@ -100,8 +111,7 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
processTaskDTO
=
Workflow
.
taskV2Client
.
assign
(
taskVo
).
getResult
();
}
catch
(
InnerInvokException
e
)
{
//拦截无审核人异常信息
String
devMessage
=
e
.
getDevMessage
();
devMessage
=
devMessage
.
contains
(
";"
)
?
devMessage
.
split
(
";"
)[
0
]
:
devMessage
;
String
devMessage
=
getErrorMessage
(
e
);
log
.
error
(
devMessage
);
throw
new
LocalBadRequest
(
devMessage
);
}
catch
(
Exception
e
)
{
...
...
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