| | |
| | | UserTask nextTask = nextFlowNode.getUserTask(); |
| | | Task task2 = null; |
| | | Optional<Task> first = task2List.stream().filter(t -> t.getTaskDefinitionKey().equals(nextTask.getId())).findFirst(); |
| | | if(!first.isPresent() && !checkParallelCompletion(taskVo.getTaskId())){ |
| | | //下个节点任务还是并行网关的任务 |
| | | flowMyBusinessService.removeById(business.getId()); |
| | | } else { |
| | | task2 = first.orElseGet(() -> task2List.get(0)); |
| | | if (task2 != null) { |
| | | // 下个节点候选人 |
| | |
| | | } |
| | | flowMyBusinessService.updateById(business); |
| | | } |
| | | } |
| | | else { |
| | | for(FlowNextDto nextFlowNode : nextFlowNodeList) { |
| | | //**有下一个节点 |