Interface IEventExecutionResult
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
EmptyEventExecutionResult,EventExecutionResult
Represents the result returned by the
IWorkflowEventRunner. The tasks for a form record were either either
executed successfully or resulted in an error, both of which is indicated by getResult(). 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 a
CouldNotLockFormRecordException).
It is guaranteed that isHasResult() returns true if isHasException() returns
false, and vice versa.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleandefault boolean
-
Method Details
-
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.
-