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 boolean
default boolean
default 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.null
whenisHasException()
isfalse
.
-
getResult
ITaskQueueExecutionResult getResult()- Returns:
- The result of executing the tasks of a form record.
null
ifisHasResult()
isfalse
.
-
isHasException
default boolean isHasException()- Returns:
true
if this instance contains agetException()
, andfalse
otherwise.
-
isHasResult
default boolean isHasResult()- Returns:
true
if this instance contains agetResult()
, andfalse
otherwise.
-
isSuccessful
default boolean isSuccessful()- Returns:
true
ifwe have a result
and that result issuccessful
.
-