com.amazonaws.services.simpleworkflow.flow

## クラス ActivityExecutionContext

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.flow.ActivityExecutionContext

-     public abstract class ActivityExecutionContext
      extends java.lang.Object

  Context object passed to an activity implementation.
  作成者:
    fateev
  関連項目:
    `ActivityImplementation`

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `ActivityExecutionContext()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getDomain()`
    `abstract AmazonSimpleWorkflow` | `getService()`
    `abstract ActivityTask` | `getTask()`
    `abstract java.lang.String` | `getTaskToken()`
    `abstract WorkflowExecution` | `getWorkflowExecution()`
    `abstract void` | `recordActivityHeartbeat(java.lang.String details)` Use to notify Simple Workflow that activity execution is alive.

    - ### クラスから継承されたメソッド java.lang.Object

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

- - ### コンストラクタの詳細

    - #### ActivityExecutionContext

          public ActivityExecutionContext()

  - ### メソッドの詳細

    - #### getTaskToken

          public abstract java.lang.String getTaskToken()

      戻り値:
        task token that is required to report task completion when `ManualActivityCompletion` is used.

    - #### getWorkflowExecution

          public abstract WorkflowExecution getWorkflowExecution()

      戻り値:
        workfow execution that requested the activity execution

    - #### getTask

          public abstract ActivityTask getTask()

      戻り値:
        task that caused activity execution

    - #### recordActivityHeartbeat

          public abstract void recordActivityHeartbeat(java.lang.String details)
                                                throws AmazonServiceException,
                                                       AmazonClientException,
                                                       java.util.concurrent.CancellationException

      Use to notify Simple Workflow that activity execution is alive.
      パラメータ:
        `details` - In case of activity timeout details are returned as a field of the exception thrown.
      例外:
        `AmazonClientException` - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
        `AmazonServiceException` - If an error response is returned by AmazonSimpleWorkflow indicating either a problem with the data in the request. Internal service errors are swallowed and not propagated to the caller.
        `java.util.concurrent.CancellationException` - Indicates that activity cancellation was requested by the workflow.Should be rethrown from activity implementation to indicate successful cancellation.

    - #### getService

          public abstract AmazonSimpleWorkflow getService()

      戻り値:
        an instance of the Simple Workflow Java client that is the same used by the invoked activity worker.

    - #### getDomain

          public java.lang.String getDomain()