Class ErrorPropagation
- java.lang.Object
-
- org.flowable.engine.impl.bpmn.helper.ErrorPropagation
-
public class ErrorPropagation extends Object
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 Classes Modifier and Type Class Description protected static classErrorPropagation.BpmnErrorVariableContainer
-
Constructor Summary
Constructors Constructor Description ErrorPropagation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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)protected static Map<String,List<org.flowable.bpmn.model.Event>>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)
-
-
-
Method Detail
-
propagateError
public static void propagateError(BpmnError error, DelegateExecution execution)
-
propagateError
public static void propagateError(String errorCode, DelegateExecution execution)
-
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
protected static Map<String,List<org.flowable.bpmn.model.Event>> findCatchingEventsForProcess(String processDefinitionId, String errorCode)
-
mapException
public static boolean mapException(Exception e, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap)
-
findMatchingExceptionMapping
public static String findMatchingExceptionMapping(Exception e, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap)
-
getCatchEventFromList
protected static org.flowable.bpmn.model.Event getCatchEventFromList(List<org.flowable.bpmn.model.Event> events, ExecutionEntity parentExecution)
-
getErrorCodeFromErrorEventDefinition
protected static String getErrorCodeFromErrorEventDefinition(org.flowable.bpmn.model.Event event)
-
retrieveErrorCode
protected static String retrieveErrorCode(org.flowable.bpmn.model.BpmnModel bpmnModel, String errorCode)
-
handleException
public static <E extends Throwable> void handleException(Throwable exc, ExecutionEntity execution, List<org.flowable.bpmn.model.MapExceptionEntry> exceptionMap) throws E extends Throwable
- Throws:
E extends Throwable
-
injectErrorContext
protected static void injectErrorContext(org.flowable.bpmn.model.Event event, ExecutionEntity execution, ErrorPropagation.BpmnErrorVariableContainer errorSourceContainer, ExpressionManager expressionManager)
-
-