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 receivedTask
resource withTask.TaskStatus.INPROGRESS
toTask.TaskStatus.FAILED
and adds aTask.TaskOutputComponent
of typeCodeSystems.BpmnMessage.error()
.Methods inherited from class dev.dsf.bpe.v2.error.impl.AbstractMessageActivityErrorHandler
createErrorMessage, getExceptionMessage
Methods 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 receivedTask
resource withTask.TaskStatus.INPROGRESS
toTask.TaskStatus.FAILED
and adds aTask.TaskOutputComponent
of typeCodeSystems.BpmnMessage.error()
.Exceptions thrown while updating the
Task
resources to status failed are logged.Returns the given
Exception
resulting in a deleted i.e. stopped process instance.- Specified by:
handleException
in interfaceMessageActivityErrorHandler
- Parameters:
api
- notnull
variables
- notnull
sendTaskValues
- notnull
exception
- notnull
- Returns:
null
to prevent the process from being stopped
-