com.amazonaws.services.simpleworkflow.flow.generic

## クラス ActivityImplementation

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.flow.generic.ActivityImplementation

- 直系の既知のサブクラス:
    ActivityImplementationBase

      public abstract class ActivityImplementation
      extends java.lang.Object

  Base class for activity implementation. Extending `ActivityImplementationBase` instead of `ActivityImplementation` is recommended.
  作成者:
    fateev, suskin
  関連項目:
    `ActivityWorker`, `ActivityImplementationBase`

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `abstract java.lang.String` | `execute(ActivityExecutionContext context)` Execute external activity or initiate its execution if `#isManualActivityCompletion()` is `true`.
    `abstract ActivityTypeExecutionOptions` | `getExecutionOptions()`
    `abstract ActivityTypeRegistrationOptions` | `getRegistrationOptions()` Options passed to the `AmazonSimpleWorkflow.registerActivityType(com.amazonaws.services.simpleworkflow.model.RegisterActivityTypeRequest)` call.

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

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

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

    - #### ActivityImplementation

          public ActivityImplementation()

  - ### メソッドの詳細

    - #### getRegistrationOptions

          public abstract ActivityTypeRegistrationOptions getRegistrationOptions()

      Options passed to the `AmazonSimpleWorkflow.registerActivityType(com.amazonaws.services.simpleworkflow.model.RegisterActivityTypeRequest)` call.
      戻り値:
        null if activity registration is not required on the worker startup

    - #### getExecutionOptions

          public abstract ActivityTypeExecutionOptions getExecutionOptions()

    - #### execute

          public abstract java.lang.String execute(ActivityExecutionContext context)
                                            throws ActivityFailureException,
                                                   java.util.concurrent.CancellationException

      Execute external activity or initiate its execution if `#isManualActivityCompletion()` is `true`.
      パラメータ:
        `task` - information about activity to be executed. Use `ActivityTask.getInput()` to get activity input arguments.
      戻り値:
        result of activity execution if `#isManualActivityCompletion()` is set to false. Use `ActivityWorker#respondActivityTaskCompleted(String, Map)` to return result in asynchronous case.
      例外:
        `ActivityFailureException`
        `java.util.concurrent.CancellationException`