Class ErrorPropagation
- java.lang.Object
-
- org.activiti.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.
-
-
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<Event>> eventMap, DelegateExecution delegateExecution, String errorId)protected static voidexecuteEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId)protected static Map<String,List<Event>>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)
-
-
-
Method Detail
-
propagateError
public static void propagateError(BpmnError error, DelegateExecution execution)
-
propagateError
public static void propagateError(String errorRef, DelegateExecution execution)
-
executeCatch
protected static void executeCatch(Map<String,List<Event>> eventMap, DelegateExecution delegateExecution, String errorId)
-
executeEventHandler
protected static void executeEventHandler(Event event, ExecutionEntity parentExecution, ExecutionEntity currentExecution, String errorId)
-
findCatchingEventsForProcess
protected static Map<String,List<Event>> findCatchingEventsForProcess(String processDefinitionId, String errorRef)
-
mapException
public static boolean mapException(Exception e, ExecutionEntity execution, List<MapExceptionEntry> exceptionMap)
-
findMatchingExceptionMapping
protected static String findMatchingExceptionMapping(Exception e, List<MapExceptionEntry> exceptionMap)
-
-