Package dev.dsf.bpe.v2.error.impl
Class DefaultMessageIntermediateThrowEventErrorHandler
java.lang.Object
dev.dsf.bpe.v2.error.impl.AbstractErrorHandler
dev.dsf.bpe.v2.error.impl.AbstractMessageActivityErrorHandler
dev.dsf.bpe.v2.error.impl.DefaultMessageIntermediateThrowEventErrorHandler
- All Implemented Interfaces:
ErrorBoundaryEventErrorHandler,ErrorHandler,ExceptionErrorHandler,MessageActivityErrorHandler,MessageIntermediateThrowEventErrorHandler
public class DefaultMessageIntermediateThrowEventErrorHandler
extends AbstractMessageActivityErrorHandler
implements MessageIntermediateThrowEventErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleException(ProcessPluginApi api, Variables variables, SendTaskValues sendTaskValues, Exception exception) Logs the givenException, updates all receivedTaskresource withTask.TaskStatus.INPROGRESStoTask.TaskStatus.FAILEDand adds aTask.TaskOutputComponentof typeCodeSystems.BpmnMessage.error().Methods inherited from class dev.dsf.bpe.v2.error.impl.AbstractMessageActivityErrorHandler
createErrorMessage, getExceptionMessageMethods inherited from class dev.dsf.bpe.v2.error.impl.AbstractErrorHandler
createErrorMessageFromException, createTaskErrorOutput, getTasks, handleErrorBoundaryEvent, handleException, updateFailedIfInprogress, updateTaskAndHandleException
-
Constructor Details
-
DefaultMessageIntermediateThrowEventErrorHandler
public DefaultMessageIntermediateThrowEventErrorHandler()
-
-
Method Details
-
handleException
public Exception handleException(ProcessPluginApi api, Variables variables, SendTaskValues sendTaskValues, Exception exception) Logs the givenException, updates all receivedTaskresource withTask.TaskStatus.INPROGRESStoTask.TaskStatus.FAILEDand adds aTask.TaskOutputComponentof typeCodeSystems.BpmnMessage.error().Exceptions thrown while updating the
Taskresources to status failed are logged.Returns the given
Exceptionresulting in a deleted i.e. stopped process instance.- Specified by:
handleExceptionin interfaceMessageActivityErrorHandler- Parameters:
api- notnullvariables- notnullsendTaskValues- notnullexception- notnull- Returns:
nullto prevent the process from being stopped
-