Package org.kie.kogito.process
Class ProcessInstanceExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kie.kogito.process.ProcessInstanceExecutionException
- All Implemented Interfaces:
Serializable
Thrown when there is problems encountered during process instance execution.
Usually caused by one of the node instances not able to perform desired action.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceExecutionException(String processInstanceId, String failedNodeId, String failedNodeInstanceId, String errorMessage) ProcessInstanceExecutionException(String processInstanceId, String failedNodeId, String failedNodeInstanceId, String errorMessage, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionfromError(ProcessInstance<?> processInstance) Returns error message associated with this failure.Returns node definition id of the node instance that failed to executeReturns process instance id of the instance that failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProcessInstanceExecutionException
-
ProcessInstanceExecutionException
-
-
Method Details
-
getProcessInstanceId
Returns process instance id of the instance that failed.- Returns:
- process instance id
-
getFailedNodeId
Returns node definition id of the node instance that failed to execute- Returns:
- node definition id
-
getErrorMessage
Returns error message associated with this failure. Usually will consists of error id, fully qualified class name of the root cause exception and error message- Returns:
- error message
-
getFailedNodeInstanceId
-
fromError
-