fix:修复simple设计器第一个发起人节点,审批时校验是否存在审批人导致流程异常

This commit is contained in:
lizhixian 2025-03-19 17:21:29 +08:00
parent 41639d5dd7
commit b6c700af6b
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ public class BpmTaskServiceImpl implements BpmTaskService {
*/ */
private Map<String, Object> validateAndSetNextAssignees(String taskDefinitionKey, Map<String, Object> variables, BpmnModel bpmnModel, private Map<String, Object> validateAndSetNextAssignees(String taskDefinitionKey, Map<String, Object> variables, BpmnModel bpmnModel,
Map<String, List<Long>> nextAssignees, ProcessInstance processInstance) { Map<String, List<Long>> nextAssignees, ProcessInstance processInstance) {
if (taskDefinitionKey.equals(START_USER_NODE_ID)) {
return variables;
}
// 1. 获取下一个将要执行的节点集合 // 1. 获取下一个将要执行的节点集合
FlowElement flowElement = bpmnModel.getFlowElement(taskDefinitionKey); FlowElement flowElement = bpmnModel.getFlowElement(taskDefinitionKey);
List<FlowNode> nextFlowNodes = getNextFlowNodes(flowElement, bpmnModel, variables); List<FlowNode> nextFlowNodes = getNextFlowNodes(flowElement, bpmnModel, variables);