fix:修复simple设计器第一个发起人节点,审批时校验是否存在审批人导致流程异常
This commit is contained in:
parent
41639d5dd7
commit
b6c700af6b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue