Interface IEventExecutionResult

All Superinterfaces:
Serializable
All Known Implementing Classes:
EmptyEventExecutionResult, EventExecutionResult

public interface IEventExecutionResult extends Serializable
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 Details

    • getException

      Exception getException()
      Returns:
      The (unhandled) exception that is responsible when no getResult() at all (neither success nor error) could be obtained. null when isHasException() is false.
    • getResult

      Returns:
      The result of executing the tasks of a form record. null if isHasResult() is false.
    • isHasException

      default boolean isHasException()
      Returns:
      true if this instance contains a getException(), and false otherwise.
    • isHasResult

      default boolean isHasResult()
      Returns:
      true if this instance contains a getResult(), and false otherwise.
    • isSuccessful

      default boolean isSuccessful()
      Returns:
      true if we have a result and that result is successful.