Class AWS::SimpleWorkflow::ActivityType
In: lib/aws/simple_workflow/activity_type.rb
Parent: Type

## Registering an ActivityType

To register an activity type you should use the activity_types method on the domain:

    domain.activity_types.register('name', 'version', { ... })

See {ActivityTypeCollection#register} for a complete list of options.

## Deprecating an activity type

ActivityType inherits from the generic {Type} base class. Defined in {Type} are a few useful methods including:

You can use these to deprecate an activity type:

    domain.activity_types['name','version'].deprecate

@attr_reader [Time] creation_date When the workflow type was registered.

@attr_reader [Time,nil] deprecation_date When the workflow type

  was deprecated, or nil if the workflow type has not been deprecated.

@attr_reader [String,nil] description The description of this workflow

  type, or nil if was not set when it was registered.

@attr_reader [Symbol] status The status of this workflow type. The

  status will either be `:registered` or `:deprecated`.

@attr_reader [Integer,:none,nil] default_task_heartbeat_timeout

  The default maximum time specified when registering the activity
  type, before which a worker processing a task must report
  progress. If the timeout is exceeded, the activity task is
  automatically timed out. If the worker subsequently attempts
  to record a heartbeat or return a result, it will be ignored.

  The return value may be an integer (number of seconds), the
  symbol `:none` (implying no timeout) or `nil` (not specified).

@attr_reader [String,nil] default_task_list

  The default task list specified for this activity type at
  registration. This default task list is used if a task list is
  not provided when a task is scheduled.

@attr_reader [Integer,:none,nil] default_task_schedule_to_close_timeout

  The default maximum duration specified when registering the
  activity type, for tasks of this activity type. You can override
  this default when scheduling a task.

  The return value may be an integer (number of seconds), the
  symbol `:none` (implying no timeout) or `nil` (not specified).

@attr_reader [Integer,:none,nil] default_task_schedule_to_start_timeout

  The optional default maximum duration specified when registering
  the activity type, that a task of an activity type can wait
  before being assigned to a worker.

  The return value may be an integer (number of seconds), the
  symbol `:none` (implying no timeout) or `nil` (not specified).

@attr_reader [Integer,:none,nil] default_task_start_to_close_timeout

  The default maximum duration for activity tasks of this type.

  The return value may be an integer (number of seconds), the
  symbol `:none` (implying no timeout) or `nil` (not specified).

[Validate]