@Override public ProcessDefinition deployAndEnableProcess(final BusinessArchive businessArchive) throws ProcessDeployException, ProcessEnablementException, AlreadyExistsException { final ProcessDefinition processDefinition = deploy(businessArchive); try { enableProcess(processDefinition.getId()); } catch (final ProcessDefinitionNotFoundException e) { throw new ProcessEnablementException(e.getMessage()); } return processDefinition; }
@Override public ProcessDefinition deployAndEnableProcess(final BusinessArchive businessArchive) throws ProcessDeployException, ProcessEnablementException, AlreadyExistsException { final ProcessDefinition processDefinition = deploy(businessArchive); try { enableProcess(processDefinition.getId()); } catch (final ProcessDefinitionNotFoundException e) { throw new ProcessEnablementException(e.getMessage()); } return processDefinition; }