Commit b6c700af6babf05a9d08f70c34c115e6257bfc9f
1 parent
41639d5d
fix:修复simple设计器第一个发起人节点,审批时校验是否存在审批人导致流程异常
Showing
1 changed file
with
3 additions
and
0 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskServiceImpl.java
| ... | ... | @@ -599,6 +599,9 @@ public class BpmTaskServiceImpl implements BpmTaskService { |
| 599 | 599 | */ |
| 600 | 600 | private Map<String, Object> validateAndSetNextAssignees(String taskDefinitionKey, Map<String, Object> variables, BpmnModel bpmnModel, |
| 601 | 601 | Map<String, List<Long>> nextAssignees, ProcessInstance processInstance) { |
| 602 | + if (taskDefinitionKey.equals(START_USER_NODE_ID)) { | |
| 603 | + return variables; | |
| 604 | + } | |
| 602 | 605 | // 1. 获取下一个将要执行的节点集合 |
| 603 | 606 | FlowElement flowElement = bpmnModel.getFlowElement(taskDefinitionKey); |
| 604 | 607 | List<FlowNode> nextFlowNodes = getNextFlowNodes(flowElement, bpmnModel, variables); | ... | ... |