@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
/** * Constructs a new exception with the specified detail message and cause. * * @param errors * The list of errors included in the detail message (which is saved for later retrieval by the {@link Throwable#getMessage()} method). */ public InvalidProcessDefinitionException(final List<String> errors) { super(getErrorMessage(errors)); }
/** * Constructs a new exception and the message with the identifier of the process instance. * * @param processInstanceId * The identifier of the process instance */ public ProcessInstanceNotFoundException(final long processInstanceId) { super("No process instance found !!"); setProcessInstanceIdOnContext(processInstanceId); }
@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 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); } }
protected void findExpressionFromNotNullContainer(Visitable visitable, long expressionDefinitionId) { if (visitable != null && toBeFound == null) { visitable.accept(this, expressionDefinitionId); } }
@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 void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
/** * Constructs a new exception with the specified detail message and cause. * * @param errors * The list of errors included in the detail message (which is saved for later retrieval by the {@link Throwable#getMessage()} method). */ public InvalidProcessDefinitionException(final List<String> errors) { super(getErrorMessage(errors)); }
/** * Constructs a new exception and the message with the identifier of the process instance. * * @param processInstanceId * The identifier of the process instance */ public ProcessInstanceNotFoundException(final long processInstanceId) { super("No process instance found !!"); setProcessInstanceIdOnContext(processInstanceId); }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }
@Override public void accept(ModelFinderVisitor visitor, long modelId) { visitor.find(this, modelId); } }