Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
workflow-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
workflow-platform
Commits
5c55dde4
Commit
5c55dde4
authored
Jun 01, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分pom
parent
49088a1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
workflow-engine/src/main/java/com/mortals/flowable/service/FlowTaskServiceImpl.java
...ava/com/mortals/flowable/service/FlowTaskServiceImpl.java
+12
-2
No files found.
workflow-engine/src/main/java/com/mortals/flowable/service/FlowTaskServiceImpl.java
View file @
5c55dde4
...
...
@@ -436,6 +436,13 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
if
(
StringUtils
.
isNotBlank
(
histIns
.
getAssignee
()))
{
flowTask
.
setAssigneeId
(
histIns
.
getAssignee
());
}
Task
task
=
taskService
.
createTaskQuery
().
taskId
(
histIns
.
getTaskId
()).
singleResult
();
if
(!
ObjectUtils
.
isEmpty
(
task
))
{
flowTask
.
setTaskName
(
task
.
getName
());
flowTask
.
setTaskId
(
task
.
getId
());
}
//获取任务action 通过commentInfo获取
CommentInfoQuery
commentInfoQuery
=
new
CommentInfoQuery
();
commentInfoQuery
.
setTaskId
(
histIns
.
getTaskId
());
...
...
@@ -451,11 +458,14 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
flowTask
.
setDuration
(
histIns
.
getDurationInMillis
()
==
null
||
histIns
.
getDurationInMillis
()
==
0
?
null
:
getDate
(
histIns
.
getDurationInMillis
()));
// 获取意见评论内容
// flowTask.setTaskName(histIns.getn);
List
<
Comment
>
commentList
=
taskService
.
getProcessInstanceComments
(
histIns
.
getProcessInstanceId
());
Boolean
bool1
=
false
;
for
(
Comment
comment
:
commentList
)
{
if
(!
"event"
.
equalsIgnoreCase
(
comment
.
getType
())
&&
histIns
.
getTaskId
().
equals
(
comment
.
getTaskId
()))
{
if
(!
"event"
.
equalsIgnoreCase
(
comment
.
getType
())
&&
histIns
.
getTaskId
().
equals
(
comment
.
getTaskId
()))
{
flowTask
.
setComment
(
FlowCommentPdu
.
builder
().
type
(
comment
.
getType
()).
comment
(
comment
.
getFullMessage
()).
build
());
bool1
=
true
;
break
;
...
...
@@ -469,7 +479,6 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
}
//查询当前任务是否存在子任务
List
<
HistoricTaskInstance
>
subList
=
historyService
.
createHistoricTaskInstanceQuery
()
.
taskParentTaskId
(
histIns
.
getTaskId
())
...
...
@@ -609,6 +618,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
//todo 完成加签流程 完成任务 携带附件信息
ApiRespPdu
<
String
>
rsp
=
new
ApiRespPdu
<>(
YesNoEnum
.
YES
.
getValue
(),
"审批成功"
);
try
{
if
(
StringUtils
.
isNotBlank
(
completeTaskReq
.
getProcessInstanceId
())
&&
StringUtils
.
isNotBlank
(
completeTaskReq
.
getTaskId
()))
{
//1.查看当前任务是存在
...
...
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