Interface IEventExecutionResult
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
EmptyEventExecutionResult,EventExecutionResult
public interface IEventExecutionResult extends Serializable
Represents the result returned by theIWorkflowEventRunner. The tasks for a form record were either either executed successfully or resulted in an error, both of which is indicated bygetResult(). In case an unhandled exception occurred and execution of the tasks for a form record could not even start,#getException()returns the responsible exception (the most common case is aCouldNotLockFormRecordException).It is guaranteed that
isHasResult()returnstrueifisHasException()returnsfalse, and vice versa.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExceptiongetException()ITaskQueueExecutionResultgetResult()default booleanisHasException()default booleanisHasResult()default booleanisSuccessful()
-
-
-
Method Detail
-
getException
Exception getException()
- Returns:
- The (unhandled) exception that is responsible when no
getResult()at all (neither success nor error) could be obtained.nullwhenisHasException()isfalse.
-
getResult
ITaskQueueExecutionResult getResult()
- Returns:
- The result of executing the tasks of a form record.
nullifisHasResult()isfalse.
-
isHasException
default boolean isHasException()
- Returns:
trueif this instance contains agetException(), andfalseotherwise.
-
isHasResult
default boolean isHasResult()
- Returns:
trueif this instance contains agetResult(), andfalseotherwise.
-
isSuccessful
default boolean isSuccessful()
- Returns:
trueifwe have a resultand that result issuccessful.
-
-