Class ErrorPropagation
java.lang.Object
org.activiti.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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanexecuteCatch(Map<String, List<Event>> eventMap, DelegateExecution delegateExecution, String errorId) protected static voidexecuteEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId) protected static booleanfindCatchingEventsAndExecuteCatchForCallActivity(String errorRef, DelegateExecution execution) findCatchingEventsForProcess(String processDefinitionId, String errorRef) protected static StringfindMatchingExceptionMapping(Exception e, List<MapExceptionEntry> exceptionMap) static booleanmapException(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) static voidpropagateError(String errorRef, DelegateExecution execution) static voidpropagateError(BpmnError error, DelegateExecution execution) protected static StringretrieveErrorCode(BpmnModel bpmnModel, String errorRef)
-
Constructor Details
-
ErrorPropagation
public ErrorPropagation()
-
-
Method Details
-
propagateError
-
propagateError
-
executeCatch
-
findCatchingEventsAndExecuteCatchForCallActivity
protected static boolean findCatchingEventsAndExecuteCatchForCallActivity(String errorRef, DelegateExecution execution) -
executeEventHandler
protected static void executeEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId) -
findCatchingEventsForProcess
-
mapException
public static boolean mapException(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap) -
findMatchingExceptionMapping
protected static String findMatchingExceptionMapping(Exception e, List<MapExceptionEntry> exceptionMap) -
retrieveErrorCode
-