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()
returnstrue
ifisHasException()
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 Exception
getException()
ITaskQueueExecutionResult
getResult()
default boolean
isHasException()
default boolean
isHasResult()
default boolean
isSuccessful()
-
-
-
Method Detail
-
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
.
-
-