Merge branch 'refs/heads/REQ-2324' into feature/merged_all_req

This commit is contained in:
wangli 2024-05-31 16:56:49 +08:00
commit 9c25847053

View File

@ -82,6 +82,9 @@ public class BpmnProcessActivityServiceImpl implements BpmnProcessActivityServic
CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutor();
if (CollectionUtils.isEmpty(dto.getAssigners())) {
Execution execution = runtimeService.createExecutionQuery().executionId(dto.getTriggerId()).singleResult();
if (Objects.isNull(execution)) {
throw new WorkflowEngineException(ACTIVITY_TRIGGER_NOT_EXISTS, dto.getTriggerId());
}
commandExecutor.execute(new CustomAbortProcessInstanceCmd(execution.getProcessInstanceId(), null, "业务未指定审批人", extAxHiTaskInstService));
return;
}