| | |
| | | |
| | | @Resource |
| | | private BpmProcessInstanceService processInstanceService; |
| | | @org.springframework.beans.factory.annotation.Autowired |
| | | private org.springframework.beans.factory.ObjectProvider<BpmTaskApprovalValidator> approvalValidators; |
| | | @Resource |
| | | private BpmProcessDefinitionService bpmProcessDefinitionService; |
| | | @Resource |
| | |
| | | if (instance == null) { |
| | | throw exception(PROCESS_INSTANCE_NOT_EXISTS); |
| | | } |
| | | approvalValidators.orderedStream().forEach(validator -> validator.validate(userId, task, instance)); |
| | | // 1.3 校验签名 |
| | | BpmnModel bpmnModel = modelService.getBpmnModelByDefinitionId(task.getProcessDefinitionId()); |
| | | Boolean signEnable = parseSignEnable(bpmnModel, task.getTaskDefinitionKey()); |