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 voidexecuteCatch(Map<String, List<Event>> eventMap, DelegateExecution delegateExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) protected static voidexecuteEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) findCatchingEventsForProcess(String processDefinitionId, String errorCode) static StringfindMatchingExceptionMapping(Exception e, List<MapExceptionEntry> exceptionMap) protected static EventgetCatchEventFromList(List<Event> events, ExecutionEntity parentExecution) protected static Stringstatic <E extends Throwable>
voidhandleException(Throwable exc, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) protected static voidinjectErrorContext(Event event, ExecutionEntity execution, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager) static booleanmapException(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) protected static voidpropagateError(String errorCode, Throwable exception, DelegateExecution execution) static voidpropagateError(String errorCode, DelegateExecution execution) static voidpropagateError(BpmnError error, DelegateExecution execution) protected static voidpropagateError(ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer, DelegateExecution execution) protected static StringretrieveErrorCode(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
-
injectErrorContext
protected static void injectErrorContext(Event event, ExecutionEntity execution, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager)
-