/** * Constructs a new exception and the message with the given informations of the process definition with the problem. * * @param processDefinitionId * The identifier of the process definition * @param name * The name of the process definition * @param version * The version of the process definition */ public ProcessActivationException(final long processDefinitionId, final String name, final String version) { super("The process definition is not enabled !!"); setProcessDefinitionIdOnContext(processDefinitionId); setProcessDefinitionNameOnContext(name); setProcessDefinitionVersionOnContext(version); }
@Override public void disableProcess(final long processDefinitionId) throws ProcessDefinitionNotFoundException, ProcessActivationException { try { processManagementAPIImplDelegate.disableProcess(processDefinitionId); } catch (final SProcessDefinitionNotFoundException e) { throw new ProcessDefinitionNotFoundException(e); } catch (final SBonitaException e) { throw new ProcessActivationException(e); } }
@Override public void disableProcess(final long processDefinitionId) throws ProcessDefinitionNotFoundException, ProcessActivationException { try { processManagementAPIImplDelegate.disableProcess(processDefinitionId); } catch (final SProcessDefinitionNotFoundException e) { throw new ProcessDefinitionNotFoundException(e); } catch (final SBonitaException e) { throw new ProcessActivationException(e); } }
/** * Constructs a new exception and the message with the given informations of the process definition with the problem. * * @param processDefinitionId * The identifier of the process definition * @param name * The name of the process definition * @param version * The version of the process definition */ public ProcessActivationException(final long processDefinitionId, final String name, final String version) { super("The process definition is not enabled !!"); setProcessDefinitionIdOnContext(processDefinitionId); setProcessDefinitionNameOnContext(name); setProcessDefinitionVersionOnContext(version); }
public ProcessInstance start() throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException, ContractViolationException { try { return start(null); } catch (final SContractViolationException e) { throw new ContractViolationException(e.getSimpleMessage(), e.getMessage(), e.getExplanations(), e.getCause()); } catch (final SProcessDefinitionNotFoundException e) { throw new ProcessDefinitionNotFoundException(e); } catch (final SBonitaReadException e) { throw new RetrieveException(e); } catch (final SProcessDefinitionException e) { throw new ProcessActivationException(e); } catch (final SBonitaException e) { throw new ProcessExecutionException(e); } }
public ProcessInstance start() throws ProcessDefinitionNotFoundException, ProcessActivationException, ProcessExecutionException, ContractViolationException { try { return start(null); } catch (final SContractViolationException e) { throw new ContractViolationException(e.getSimpleMessage(), e.getMessage(), e.getExplanations(), e.getCause()); } catch (final SProcessDefinitionNotFoundException e) { throw new ProcessDefinitionNotFoundException(e); } catch (final SBonitaReadException e) { throw new RetrieveException(e); } catch (final SProcessDefinitionException e) { throw new ProcessActivationException(e); } catch (final SBonitaException e) { throw new ProcessExecutionException(e); } }