Class ProcessInstanceExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.automatiko.engine.api.workflow.ProcessInstanceExecutionException
-
- All Implemented Interfaces:
Serializable
public class ProcessInstanceExecutionException extends RuntimeException
Thrown when there is problem encountered during process instance execution. Usually caused by one of the node instances not able to perform desired action.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceExecutionException(String processInstanceId, String failedNodeId, String errorMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()Returns error message associated with this failure.StringgetFailedNodeId()Returns node definition id of the node instance that failed to executeStringgetProcessInstanceId()Returns 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
-
-
-
-
Method Detail
-
getProcessInstanceId
public String getProcessInstanceId()
Returns process instance id of the instance that failed.- Returns:
- process instance id
-
getFailedNodeId
public String getFailedNodeId()
Returns node definition id of the node instance that failed to execute- Returns:
- node definition id
-
getErrorMessage
public String 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
-
-