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<org.flowable.bpmn.model.Event>> eventMap, DelegateExecution delegateExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) protected static voidexecuteEventHandler(org.flowable.bpmn.model.Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) 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, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager) static booleanmapException(Exception e, ExecutionEntity execution, List<org.flowable.bpmn.model.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(org.flowable.bpmn.model.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<org.flowable.bpmn.model.Event>> eventMap, DelegateExecution delegateExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) -
executeEventHandler
protected static void executeEventHandler(org.flowable.bpmn.model.Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, ErrorPropagation.BpmnErrorVariableContainer errorVariableContainer) -
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, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager)
-