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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidexecuteCatch(Map<String, List<org.flowable.bpmn.model.Event>> eventMap, DelegateExecution delegateExecution, String errorId) protected static voidexecuteEventHandler(org.flowable.bpmn.model.Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId) findCatchingEventsForProcess(String processDefinitionId, String errorCode) static StringfindMatchingExceptionMapping(Exception e, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) protected static org.flowable.bpmn.model.EventgetCatchEventFromList(List<org.flowable.bpmn.model.Event> events, ExecutionEntity parentExecution) protected static StringgetErrorCodeFromErrorEventDefinition(org.flowable.bpmn.model.Event event) static <E extends Throwable>
voidhandleException(Throwable exc, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) protected static voidinjectErrorContext(org.flowable.bpmn.model.Event event, ExecutionEntity execution, String errorCode) static booleanmapException(Exception e, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) static voidpropagateError(String errorCode, DelegateExecution execution) static voidpropagateError(BpmnError error, DelegateExecution execution) protected static StringretrieveErrorCode(org.flowable.bpmn.model.BpmnModel bpmnModel, String errorCode)
-
Constructor Details
-
ErrorPropagation
public ErrorPropagation()
-
-
Method Details
-
propagateError
-
propagateError
-
executeCatch
protected static void executeCatch(Map<String, List<org.flowable.bpmn.model.Event>> eventMap, DelegateExecution delegateExecution, String errorId) -
executeEventHandler
protected static void executeEventHandler(org.flowable.bpmn.model.Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId) -
findCatchingEventsForProcess
-
mapException
public static boolean mapException(Exception e, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) -
findMatchingExceptionMapping
-
getCatchEventFromList
protected static org.flowable.bpmn.model.Event getCatchEventFromList(List<org.flowable.bpmn.model.Event> events, ExecutionEntity parentExecution) -
getErrorCodeFromErrorEventDefinition
-
retrieveErrorCode
-
handleException
public static <E extends Throwable> void handleException(Throwable exc, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) throws E - Throws:
E extends Throwable
-
injectErrorContext
protected static void injectErrorContext(org.flowable.bpmn.model.Event event, ExecutionEntity execution, String errorCode)
-