| | |
| | | flowTaskUserCi.setToTaskName(targetFlow.getName()); |
| | | taskList.add(flowTaskUserCi); |
| | | } |
| | | // 如果下个审批节点为排他网关 |
| | | if (targetFlow instanceof ExclusiveGateway) { |
| | | // 如果下个审批节点为网关 |
| | | if (targetFlow instanceof Gateway) { |
| | | |
| | | ExclusiveGateway exclusiveGateway = (ExclusiveGateway) targetFlow; |
| | | List<SequenceFlow> exclusiveGatewayOutgoingFlows = exclusiveGateway.getOutgoingFlows(); |
| | | for (SequenceFlow nexti:exclusiveGatewayOutgoingFlows){ |
| | | String conditionExpression = nexti.getConditionExpression();//condition |
| | | |
| | | String taskId = nexti.getTargetRef();//taskId |
| | | String name = nexti.getName();//toName,驳回、同意 |
| | | String taskName = taskMap.get(targetFlow.getId()); |
| | | |
| | | String taskName = taskMap.get(taskId); |
| | | //ExclusiveGateway |
| | | if(StringUtils.isEmpty(conditionExpression)){//此时排他网关没有配置流转条件 |
| | | continue; |
| | | } |
| | | for (FlowTaskDTO flowTaskUserCi:mis){ |
| | | if(taskId.equals(flowTaskUserCi.getTaskId())){ |
| | | flowTaskUserCi.setCondition(conditionExpression); |