Class FlowExecutionException
- All Implemented Interfaces:
Serializable
Thrown when an error occurs during flow execution For example: script execution error, node execution error, action execution error, etc.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowExecutionException(String code, String message) ConstructorFlowExecutionException(String code, String message, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowExecutionExceptionCreate record size errorstatic FlowExecutionExceptionCustom action next not foundstatic FlowExecutionExceptionerrorTriggerDepthExceeded(int maxDepth) Error trigger recursion depth exceeds the limitstatic FlowExecutionExceptionError trigger node loop detectedstatic FlowExecutionExceptioninvalidJumpTarget(String nodeType) Invalid jump targetstatic FlowExecutionExceptionnodeLoopDepthExceeded(int maxDepth) Node execution count exceeds the limitstatic FlowExecutionExceptionoperatorCountExceeded(String actionType, int maxOperatorCount) Operator count exceeds the max countstatic FlowExecutionExceptionoperatorNotInScope(String actionType) Operator not in scopestatic FlowExecutionExceptionremove version errorstatic FlowExecutionExceptionrouterNodeNotFound(String nodeId) Router node not foundstatic FlowExecutionExceptionscriptExecutionError(String scriptType, Throwable cause) Script execution errorstatic FlowExecutionExceptionSub process loop detectedstatic FlowExecutionExceptionsubProcessMaxDepth(int maxDepth) Sub process nesting depth exceeds the limitMethods inherited from class com.codingapi.springboot.framework.exception.LocaleMessageException
getErrCode, getErrMessage, ofMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlowExecutionException
Constructor- Parameters:
code- error codemessage- error message
-
FlowExecutionException
Constructor- Parameters:
code- error codemessage- error messagecause- cause
-
-
Method Details
-
scriptExecutionError
Script execution error- Parameters:
scriptType- script typecause- cause- Returns:
- exception
-
routerNodeNotFound
Router node not found- Parameters:
nodeId- node ID- Returns:
- exception
-
removeWorkflowError
remove version error- Returns:
- exception
-
createRecordSizeError
Create record size error- Returns:
- exception
-
operatorNotInScope
Operator not in scope- Parameters:
actionType- action type (delegate/transfer/addAudit)- Returns:
- exception
-
operatorCountExceeded
Operator count exceeds the max count- Parameters:
actionType- action type (delegate/transfer/addAudit)maxOperatorCount- max operator count- Returns:
- exception
-
customActionNextNotFound
Custom action next not found- Returns:
- exception
-
subProcessLoop
Sub process loop detectedThe same sub process node has been triggered repeatedly in the flow chain, which means the sub process creates itself or an ancestor flow.
- Returns:
- exception
-
subProcessMaxDepth
Sub process nesting depth exceeds the limit- Parameters:
maxDepth- max sub process depth- Returns:
- exception
-
errorTriggerLoop
Error trigger node loop detectedThe error trigger jumps back to a node that has already been visited during the current record generation, which would cause infinite recursion.
- Returns:
- exception
-
errorTriggerDepthExceeded
Error trigger recursion depth exceeds the limit- Parameters:
maxDepth- max nest depth- Returns:
- exception
-
invalidJumpTarget
Invalid jump targetThe error trigger / reject action jumps to a node type that cannot generate records (e.g. notify node or sub process node), which would silently stall the flow instead of producing a new todo.
- Parameters:
nodeType- node type- Returns:
- exception
-
nodeLoopDepthExceeded
Node execution count exceeds the limitThe same node has been executed too many times in the flow instance chain, which indicates a loop chain (e.g. A -> B -> C -> B) instead of a normal forward progress.
- Parameters:
maxDepth- max nest depth- Returns:
- exception
-