REQ-2924-修复查询退回节点重复问题
This commit is contained in:
parent
e221cb1d6b
commit
adcb49c806
@ -366,6 +366,12 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
|
||||
throw new WorkflowEngineException(PROCESS_INSTANCE_NOT_EXISTS);
|
||||
}
|
||||
List<BpmnHistoricTaskInstanceVO> tasks = this.getHistoricTaskListByProcessInstanceId(processInstanceId, null);
|
||||
tasks = tasks.stream()
|
||||
.filter(t -> t.getNodeType() == NODE_STARTER || t.getNodeType() == NODE_TASK || t.getNodeType() == NODE_BUSINESS)
|
||||
.collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(tasks)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
tasks.sort(Comparator.comparing(BpmnHistoricTaskInstanceVO::getCreateTime));
|
||||
LinkedList<Pair<String, List<BpmnHistoricTaskInstanceVO>>> executedList = new LinkedList<>();
|
||||
for (BpmnHistoricTaskInstanceVO vo : tasks) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user