This commit is contained in:
wangliwen 2022-05-17 10:54:23 +08:00
parent 35bd409045
commit d9c3b28ec5
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ public class ActHistoryService {
if (dto.isEnded()) { // 已结束
continue;
}
List<Task> listTask = taskService.createTaskQuery().processInstanceId(dto.getProcessInstanceId()).includeProcessVariables().includeTaskLocalVariables().list();
List<Task> listTask = taskService.createTaskQuery().processInstanceId(dto.getProcessInstanceId()).includeProcessVariables().list();
List<TaskDTO> taskDTOList = new ArrayList<>();
for (Task task : listTask) {
TaskDTO taskDTO = new TaskDTO();
@ -321,7 +321,7 @@ public class ActHistoryService {
dto.setProcessInstanceId(task.getProcessInstanceId());
dto.setOwner(task.getOwner());
dto.setCreateTime(task.getCreateTime());
dto.setParams(task.getTaskLocalVariables());
dto.setParams(task.getProcessVariables());
if (dto.getParams().containsKey("backToFirst")) {
dto.setBackToFirst(Boolean.valueOf(dto.getParams().get("backToFirst").toString()));
}