Interface ITaskExecutionErrorResult
-
- All Superinterfaces:
ITaskExecutionResult
,Serializable
public interface ITaskExecutionErrorResult extends ITaskExecutionResult
The result of execution aWorkflowTask
, returned by the task runner when the task was not executed successfully.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Throwable
getCause()
String
getMessage()
boolean
isWasHandled()
default boolean
isWasSuccessful()
-
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.ITaskExecutionResult
asError, asSuccess, getExecutionFinishedOrder, getExecutionStartedOrder, getFormDataAdapter, getFormRecord, getResultMap, getServletResponse, getSessionAttributesMapDiff, getTasks, isWasFormRecordDeleted
-
-
-
-
Method Detail
-
getCause
Throwable getCause()
- Returns:
- The exception, if any, that caused the execution to fail.
-
getMessage
String getMessage()
- Returns:
- The message of the exception, if any, that caused the execution to fail.
-
isWasHandled
boolean isWasHandled()
- Returns:
- Whether the exception was handled in some way. For example, a task may fail due to an unhandled exception, but a global error trigger may have been defined in the workflow that handled that error.
-
isWasSuccessful
default boolean isWasSuccessful()
- Specified by:
isWasSuccessful
in interfaceITaskExecutionResult
- Returns:
true
if this result is aITaskExecutionSuccessResult
, orfalse
if this result is aITaskExecutionErrorResult
.
-
-