Class ErrorPropagation
java.lang.Object
org.flowable.engine.impl.bpmn.helper.ErrorPropagation
This class is responsible for finding and executing error handlers for BPMN Errors.
Possible error handlers include Error Intermediate Events and Error Event Sub-Processes.
- Author:
- Tijs Rademakers, Saeid Mirzaei
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
executeCatch
(Map<String, List<Event>> eventMap, DelegateExecution delegateExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) protected static void
executeEventHandler
(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) findCatchingEventsForProcess
(String processDefinitionId, String errorCode) static String
findMatchingExceptionMapping
(Exception e, List<MapExceptionEntry> exceptionMap) protected static Event
getCatchEventFromList
(List<Event> events, ExecutionEntity parentExecution) protected static String
static <E extends Throwable>
voidhandleException
(Throwable exc, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) protected static void
injectErrorContext
(Event event, ExecutionEntity execution, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager) static boolean
mapException
(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) protected static void
propagateError
(String errorCode, Throwable exception, DelegateExecution execution) static void
propagateError
(String errorCode, DelegateExecution execution) static void
propagateError
(BpmnError error, DelegateExecution execution) protected static void
propagateError
(ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer, DelegateExecution execution) protected static String
retrieveErrorCode
(BpmnModel bpmnModel, String errorCode)
-
Constructor Details
-
ErrorPropagation
public ErrorPropagation()
-
-
Method Details
-
propagateError
-
propagateError
-
propagateError
protected static void propagateError(String errorCode, Throwable exception, DelegateExecution execution) -
propagateError
protected static void propagateError(ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer, DelegateExecution execution) -
executeCatch
protected static void executeCatch(Map<String, List<Event>> eventMap, DelegateExecution delegateExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) -
executeEventHandler
protected static void executeEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) -
findCatchingEventsForProcess
-
mapException
public static boolean mapException(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) -
findMatchingExceptionMapping
public static String findMatchingExceptionMapping(Exception e, List<MapExceptionEntry> exceptionMap) -
getCatchEventFromList
-
getErrorCodeFromErrorEventDefinition
-
retrieveErrorCode
-
handleException
public static <E extends Throwable> void handleException(Throwable exc, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) throws E - Throws:
E extends Throwable
-
injectErrorContext
protected static void injectErrorContext(Event event, ExecutionEntity execution, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager)
-