Commit f45758b8fdac813c0e7b26ab798ab610be2d9374

Authored by smallNorthLee
1 parent eaa15b24

feat: 审批校验自选审批人节点是否存在审批人

yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmProcessInstanceServiceImpl.java
... ... @@ -173,7 +173,10 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
173 173 }
174 174 startUserId = Long.valueOf(historicProcessInstance.getStartUserId());
175 175 processInstanceStatus = FlowableUtils.getProcessInstanceStatus(historicProcessInstance);
176   - processVariables = historicProcessInstance.getProcessVariables();
  176 + // 如果流程变量为空,则使用历史流程变量
  177 + if (null == processVariables) {
  178 + processVariables = historicProcessInstance.getProcessVariables();
  179 + }
177 180 }
178 181 // 1.3 读取其它相关数据
179 182 ProcessDefinition processDefinition = processDefinitionService.getProcessDefinition(
... ...