com.amazonaws.services.simpleworkflow.flow.generic

## クラス ActivityImplementationBase

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

-     public abstract class ActivityImplementationBase
      extends ActivityImplementation

  Extend this class to implement an activity. There are two types of activity implementation: synchronous and asynchronous. Synchronous ties thread that calls `#execute(Map, ActivityExecutionContext)` method.
  作成者:
    fateev
  関連項目:
    `ActivityWorker`

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `execute(ActivityExecutionContext context)` Execute external activity or initiate its execution if `#isManualActivityCompletion()` is `true`.
    `protected abstract java.lang.String` | `execute(java.lang.String input, ActivityExecutionContext context)` Execute activity.
    `ActivityTypeExecutionOptions` | `getExecutionOptions()`
    `ActivityTypeRegistrationOptions` | `getRegistrationOptions()` By default do not register

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

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

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

    - #### ActivityImplementationBase

          public ActivityImplementationBase()

  - ### メソッドの詳細

    - #### execute

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

      クラスからコピーされた説明: `ActivityImplementation`
      Execute external activity or initiate its execution if `#isManualActivityCompletion()` is `true`.
      定義:
        `execute` クラス内 `ActivityImplementation`
      戻り値:
        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`
      関連項目:
        `ActivityImplementation.execute(ActivityExecutionContext)`

    - #### getExecutionOptions

          public ActivityTypeExecutionOptions getExecutionOptions()

      定義:
        `getExecutionOptions` クラス内 `ActivityImplementation`

    - #### getRegistrationOptions

          public ActivityTypeRegistrationOptions getRegistrationOptions()

      By default do not register
      定義:
        `getRegistrationOptions` クラス内 `ActivityImplementation`
      戻り値:
        null if activity registration is not required on the worker startup

    - #### execute

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

      Execute activity.
      パラメータ:
        `input` - activity input.
      戻り値:
        result of activity execution
      例外:
        `java.lang.Exception` - any other exception is converted to status, reason and details using `DataConverter#failureToTaskFailed(Throwable)`.
        `ActivityFailureException`
        `java.util.concurrent.CancellationException`
      関連項目:
        `#isManualActivityCompletion()`