public CaseIllegalStateTransitionException forbiddenManualCompletitionException(String transition, String id, String type) { return new CaseIllegalStateTransitionException(exceptionMessage( "002", caseStateTransitionMessage + "Reason: It is not possible to manually complete the case execution which is associated with an element of type {}.", transition, id, type )); }
public CaseIllegalStateTransitionException isAlreadyInStateException(String transition, String id, CaseExecutionState state) { return new CaseIllegalStateTransitionException(exceptionMessage( "010", caseStateTransitionMessage + "Reason: The case execution is already in state '{}'.", transition, id, state )); }
public PvmException transitCaseException(String transition, String id, CaseExecutionState currentState) { return new PvmException(exceptionMessage( "015", caseStateTransitionMessage + "Reason: Expected case execution state to be {terminatingOnTermination|terminatingOnExit} but it was '{}'.", transition, id, currentState )); }
CaseIllegalStateTransitionException executionAlreadyCompletedException(String transition, String id) { return new CaseIllegalStateTransitionException(exceptionMessage( "004", caseStateTransitionMessage + "Reason: Case execution must be available or suspended, but was completed.", transition, id )); }
public CaseIllegalStateTransitionException isAlreadyInStateException(String transition, String id, CaseExecutionState state) { return new CaseIllegalStateTransitionException(exceptionMessage( "010", caseStateTransitionMessage + "Reason: The case execution is already in state '{}'.", transition, id, state )); }
public CaseIllegalStateTransitionException remainingChildException(String transition, String id, String childId, CaseExecutionState childState) { return new CaseIllegalStateTransitionException(exceptionMessage( "013", caseStateTransitionMessage + "Reason: There is a child case execution with id '{}' in state '{}'", transition, id, childId, childState )); }
public CaseIllegalStateTransitionException illegalStateTransitionException(String transition, String id, String typeName) { return new CaseIllegalStateTransitionException(exceptionMessage( "006", caseStateTransitionMessage + "Reason: It is not possible to {} the case execution which is associated with a {}", transition, id, transition, typeName )); }
public CaseIllegalStateTransitionException alreadyStateCaseException(String transition, String id, String state) { return new CaseIllegalStateTransitionException(exceptionMessage( "007", caseStateTransitionMessage + "Reason: The case instance is already {}.", transition, id, state )); }
public CaseIllegalStateTransitionException impossibleTransitionException(String transition, String id) { return new CaseIllegalStateTransitionException(exceptionMessage( "012", caseStateTransitionMessage + "Reason: The transition is not possible for this case instance.", transition, id )); }
public CaseIllegalStateTransitionException remainingChildException(String transition, String id, String childId, CaseExecutionState childState) { return new CaseIllegalStateTransitionException(exceptionMessage( "013", caseStateTransitionMessage + "Reason: There is a child case execution with id '{}' in state '{}'", transition, id, childId, childState )); }
public ProcessEngineException ruleExpressionNotBooleanException(Object result) { return new ProcessEngineException(exceptionMessage( "001", "Rule expression returns a non-boolean value. Value: '{}', Class: '{}'", result, result.getClass().getName() )); }
public CaseIllegalStateTransitionException resumeInactiveCaseException(String transition, String id) { return new CaseIllegalStateTransitionException(exceptionMessage( "005", caseStateTransitionMessage + "Reason: It is not possible to resume the case execution which parent is not active.", transition, id )); }
public CaseIllegalStateTransitionException wrongChildStateException(String transition, String id, String childId, String stateList) { return new CaseIllegalStateTransitionException(exceptionMessage( "014", caseStateTransitionMessage + "Reason: There is a child case execution with id '{}' which is in one of the following states: {}", transition, id, childId, stateList )); }
public ProcessEngineException invokeVariableListenerException(Throwable cause) { return new ProcessEngineException(exceptionMessage( "018", "Variable listener invocation failed. Reason: {}", cause.getMessage()), cause ); }
public ProcessEngineException ruleExpressionNotBooleanException(Object result) { return new ProcessEngineException(exceptionMessage( "001", "Rule expression returns a non-boolean value. Value: '{}', Class: '{}'", result, result.getClass().getName() )); }
public CaseIllegalStateTransitionException criteriaNotAllowedException(String criteria, String id, String additionalMessage) { return new CaseIllegalStateTransitionException(exceptionMessage( "003", "Cannot trigger case execution with id '{}' because {} criteria is not allowed for {}.", id, criteria, additionalMessage )); }
public CaseIllegalStateTransitionException wrongChildStateException(String transition, String id, String childId, String stateList) { return new CaseIllegalStateTransitionException(exceptionMessage( "014", caseStateTransitionMessage + "Reason: There is a child case execution with id '{}' which is in one of the following states: {}", transition, id, childId, stateList )); }
public ProcessEngineException invokeVariableListenerException(Throwable cause) { return new ProcessEngineException(exceptionMessage( "018", "Variable listener invocation failed. Reason: {}", cause.getMessage()), cause ); }
public PvmException transitCaseException(String transition, String id, CaseExecutionState currentState) { return new PvmException(exceptionMessage( "015", caseStateTransitionMessage + "Reason: Expected case execution state to be {terminatingOnTermination|terminatingOnExit} but it was '{}'.", transition, id, currentState )); }
public ProcessEngineException decisionDefinitionEvaluationFailed(CmmnActivityExecution execution, Exception cause) { return new ProcessEngineException(exceptionMessage( "019", "Could not evaluate decision in case execution '"+execution.getId()+"'. Reason: {}", cause.getMessage()), cause ); }