Class TransientEffectExecutionResult

    • Method Detail

      • getExecutionResult

        public EventResult getExecutionResult()
        Gets the execution result.
        Returns:
        The result of the execution of the behavior, in terms of a EventResult constant.
        If this instance is associated with an asynchronous behavior execution, SUCCESSFUL is returned in any case.
      • getContext

        public Optional<ExecutionContext> getContext()
        Gets the execution context that was used to execute the behavior. This is mainly of interest in case of an asynchronous execution.
        Returns:
        The ExecutionContext that was used to execute the behavior.
      • getExecutionResultAsBoolean

        public boolean getExecutionResultAsBoolean()
        Gets the execution result in terms of a boolean flag. This is only meaningful in case of a synchronous behavior execution.
        Returns:
        true in case of success, else false.