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
6c770e91
Commit
6c770e91
authored
Jun 04, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分pom
parent
805a5105
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
workflow-engine/src/main/java/com/mortals/flowable/service/FlowTaskServiceImpl.java
...ava/com/mortals/flowable/service/FlowTaskServiceImpl.java
+8
-5
No files found.
workflow-engine/src/main/java/com/mortals/flowable/service/FlowTaskServiceImpl.java
View file @
6c770e91
...
...
@@ -567,7 +567,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
@Override
public
ApiRespPdu
<
Map
<
String
,
Object
>>
processVariables
(
CommonTaskReq
req
)
{
log
.
info
(
String
.
format
(
"获取流程变量!taskId:%s"
,
req
.
getTaskId
()
));
log
.
info
(
"获取流程变量!taskId:{}"
,
req
.
getTaskId
(
));
ApiRespPdu
<
Map
<
String
,
Object
>>
rsp
=
new
ApiRespPdu
<>();
rsp
.
setCode
(
YesNoEnum
.
YES
.
getValue
());
try
{
...
...
@@ -593,11 +593,14 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
@Override
public
ApiRespPdu
<
String
>
setProcessVariables
(
CommonTaskReq
req
)
{
log
.
info
(
String
.
format
(
"设置流程变量!taskId:%s"
,
req
.
getTaskId
()
));
log
.
info
(
"设置流程变量!taskId:{}"
,
req
.
getTaskId
(
));
ApiRespPdu
<
String
>
rsp
=
new
ApiRespPdu
<>();
rsp
.
setCode
(
YesNoEnum
.
YES
.
getValue
());
try
{
String
processInstanceId
=
taskService
.
createTaskQuery
().
taskId
(
req
.
getProcessInstanceId
()).
singleResult
().
getProcessInstanceId
();
String
processInstanceId
=
taskService
.
createTaskQuery
().
taskId
(
req
.
getTaskId
()).
singleResult
().
getProcessInstanceId
();
if
(
ObjectUtils
.
isEmpty
(
processInstanceId
))
throw
new
AppException
(
"processInstanceId is null !"
);
runtimeService
.
setVariables
(
processInstanceId
,
req
.
getVariables
());
return
rsp
;
}
catch
(
Exception
e
)
{
...
...
@@ -1361,9 +1364,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IApiFlowT
ExtendHisprocinstEntity
condition
=
new
ExtendHisprocinstEntity
();
condition
.
setProcessInstanceId
(
baseTaskReq
.
getProcessInstanceId
());
if
(
ObjectUtils
.
isEmpty
(
baseTaskReq
.
getProcessStatusEnum
()))
{
if
(
ObjectUtils
.
isEmpty
(
baseTaskReq
.
getProcessStatusEnum
()))
{
extendHisprocinstEntity
.
setProcessStatus
(
ProcessStatusEnum
.
SPZ
.
name
());
}
else
{
}
else
{
extendHisprocinstEntity
.
setProcessStatus
(
baseTaskReq
.
getProcessStatusEnum
().
toString
());
}
...
...
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