Merge branch 'refs/heads/REQ-2324' into feature/merged_all_req
This commit is contained in:
commit
9c25847053
@ -82,6 +82,9 @@ public class BpmnProcessActivityServiceImpl implements BpmnProcessActivityServic
|
|||||||
CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutor();
|
CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutor();
|
||||||
if (CollectionUtils.isEmpty(dto.getAssigners())) {
|
if (CollectionUtils.isEmpty(dto.getAssigners())) {
|
||||||
Execution execution = runtimeService.createExecutionQuery().executionId(dto.getTriggerId()).singleResult();
|
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));
|
commandExecutor.execute(new CustomAbortProcessInstanceCmd(execution.getProcessInstanceId(), null, "业务未指定审批人", extAxHiTaskInstService));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user