Package com.orchestranetworks.interactions

# Interface SessionInteraction.DecisionResult

Enclosing interface:
  SessionInteraction

public static interface SessionInteraction.DecisionResult
Contains the report of a decision request (accept or reject).

Since:
  5.8.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<UserMessage>`
  `getErrorMessages()`
  Returns error messages if the comment is specified as mandatory but is currently empty, and/or if a specific constraint is not valid.
  `OperationException`
  `getException()`
  Returns an exception if a specific workflow trigger throws an exception just before the completion of the work item.
  `boolean`
  `hasFailed()`
  Returns `true` if the result contains error messages or an exception.

- ## Method Details

  - ### hasFailed

    boolean hasFailed()
    Returns `true` if the result contains error messages or an exception.

  - ### getErrorMessages

    List<UserMessage> getErrorMessages()
    Returns error messages if the comment is specified as mandatory but is currently empty, and/or if a specific constraint is not valid.
    See Also:
      - `SessionInteraction.Specification.isCommentMandatoryForAccept()`
      - `SessionInteraction.Specification.isCommentMandatoryForReject()`
      - `UserTask.checkBeforeWorkItemCompletion(com.orchestranetworks.workflow.UserTaskBeforeWorkItemCompletionContext)`

  - ### getException

    OperationException getException()
    Returns an exception if a specific workflow trigger throws an exception just before the completion of the work item.
    See Also:
      - `WorkflowTriggerBean.handleBeforeWorkItemTermination(com.orchestranetworks.workflow.WorkflowTriggerBeforeWorkItemTerminationContext)`