Commit f45758b8fdac813c0e7b26ab798ab610be2d9374
1 parent
eaa15b24
feat: 审批校验自选审批人节点是否存在审批人
Showing
1 changed file
with
4 additions
and
1 deletions
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,7 +173,10 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService | ||
| 173 | } | 173 | } |
| 174 | startUserId = Long.valueOf(historicProcessInstance.getStartUserId()); | 174 | startUserId = Long.valueOf(historicProcessInstance.getStartUserId()); |
| 175 | processInstanceStatus = FlowableUtils.getProcessInstanceStatus(historicProcessInstance); | 175 | processInstanceStatus = FlowableUtils.getProcessInstanceStatus(historicProcessInstance); |
| 176 | - processVariables = historicProcessInstance.getProcessVariables(); | 176 | + // 如果流程变量为空,则使用历史流程变量 |
| 177 | + if (null == processVariables) { | ||
| 178 | + processVariables = historicProcessInstance.getProcessVariables(); | ||
| 179 | + } | ||
| 177 | } | 180 | } |
| 178 | // 1.3 读取其它相关数据 | 181 | // 1.3 读取其它相关数据 |
| 179 | ProcessDefinition processDefinition = processDefinitionService.getProcessDefinition( | 182 | ProcessDefinition processDefinition = processDefinitionService.getProcessDefinition( |