Package com.orchestranetworks.workflow

# Class WaitTaskResumeResult

java.lang.Object
com.orchestranetworks.workflow.WaitTaskResumeResult

public final class WaitTaskResumeResult extends Object
Represents the result after resuming a wait task. After resuming a wait task, a `WaitTaskResumeResult` is returned to specify:

- the workflow associated to the resumed wait task,
- if the resuming has failed,
- the error reason is the resuming has failed.

Since:
  5.6.1
See Also:
  - `WorkflowEngine.resumeWaitTask(WaitTaskResumeMessage)`

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `WaitTaskResumeResult.ErrorReason`
  Indicates the reason of a resumption failure.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final WaitTaskResumeResult.ErrorReason`
  `getErrorReason()`
  Returns the error reason if the resumption has failed.
  `final ProcessInstance`
  `getProcessInstance()`
  Returns the workflow associated with the resumed wait task.
  `final boolean`
  `hasFailed()`
  Returns `true` if the resumption has failed.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getProcessInstance

    public final ProcessInstance getProcessInstance()
    Returns the workflow associated with the resumed wait task.

  - ### hasFailed

    public final boolean hasFailed()
    Returns `true` if the resumption has failed.
    See Also:
      - `getErrorReason()`

  - ### getErrorReason

    public final WaitTaskResumeResult.ErrorReason getErrorReason()
    Returns the error reason if the resumption has failed.
    See Also:
      - `hasFailed()`