Skip to content

/AWS1/CL_SWFACTIVITYTSKSCHDE00

Provides the details of the ActivityTaskScheduled event.

CONSTRUCTOR

IMPORTING

Required arguments:

io_activitytype TYPE REF TO /AWS1/CL_SWFACTIVITYTYPE /AWS1/CL_SWFACTIVITYTYPE

The type of the activity task.

iv_activityid TYPE /AWS1/SWFACTIVITYID /AWS1/SWFACTIVITYID

The unique ID of the activity task.

io_tasklist TYPE REF TO /AWS1/CL_SWFTASKLIST /AWS1/CL_SWFTASKLIST

The task list in which the activity task has been scheduled.

iv_dcsntaskcompletedeventid TYPE /AWS1/SWFEVENTID /AWS1/SWFEVENTID

The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

Optional arguments:

iv_input TYPE /AWS1/SWFDATA /AWS1/SWFDATA

The input provided to the activity task.

iv_control TYPE /AWS1/SWFDATA /AWS1/SWFDATA

Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.

iv_scheduletostarttimeout TYPE /AWS1/SWFDURINSECONDSOPTIONAL /AWS1/SWFDURINSECONDSOPTIONAL

The maximum amount of time the activity task can wait to be assigned to a worker.

iv_scheduletoclosetimeout TYPE /AWS1/SWFDURINSECONDSOPTIONAL /AWS1/SWFDURINSECONDSOPTIONAL

The maximum amount of time for this activity task.

iv_starttoclosetimeout TYPE /AWS1/SWFDURINSECONDSOPTIONAL /AWS1/SWFDURINSECONDSOPTIONAL

The maximum amount of time a worker may take to process the activity task.

iv_taskpriority TYPE /AWS1/SWFTASKPRIORITY /AWS1/SWFTASKPRIORITY

The priority to assign to the scheduled activity task. If set, this overrides any default priority value that was assigned when the activity type was registered.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.

iv_heartbeattimeout TYPE /AWS1/SWFDURINSECONDSOPTIONAL /AWS1/SWFDURINSECONDSOPTIONAL

The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. 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 is ignored.


Queryable Attributes

activityType

The type of the activity task.

Accessible with the following methods

Method Description
GET_ACTIVITYTYPE() Getter for ACTIVITYTYPE

activityId

The unique ID of the activity task.

Accessible with the following methods

Method Description
GET_ACTIVITYID() Getter for ACTIVITYID, with configurable default
ASK_ACTIVITYID() Getter for ACTIVITYID w/ exceptions if field has no value
HAS_ACTIVITYID() Determine if ACTIVITYID has a value

input

The input provided to the activity task.

Accessible with the following methods

Method Description
GET_INPUT() Getter for INPUT, with configurable default
ASK_INPUT() Getter for INPUT w/ exceptions if field has no value
HAS_INPUT() Determine if INPUT has a value

control

Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.

Accessible with the following methods

Method Description
GET_CONTROL() Getter for CONTROL, with configurable default
ASK_CONTROL() Getter for CONTROL w/ exceptions if field has no value
HAS_CONTROL() Determine if CONTROL has a value

scheduleToStartTimeout

The maximum amount of time the activity task can wait to be assigned to a worker.

Accessible with the following methods

Method Description
GET_SCHEDULETOSTARTTIMEOUT() Getter for SCHEDULETOSTARTTIMEOUT, with configurable default
ASK_SCHEDULETOSTARTTIMEOUT() Getter for SCHEDULETOSTARTTIMEOUT w/ exceptions if field has
HAS_SCHEDULETOSTARTTIMEOUT() Determine if SCHEDULETOSTARTTIMEOUT has a value

scheduleToCloseTimeout

The maximum amount of time for this activity task.

Accessible with the following methods

Method Description
GET_SCHEDULETOCLOSETIMEOUT() Getter for SCHEDULETOCLOSETIMEOUT, with configurable default
ASK_SCHEDULETOCLOSETIMEOUT() Getter for SCHEDULETOCLOSETIMEOUT w/ exceptions if field has
HAS_SCHEDULETOCLOSETIMEOUT() Determine if SCHEDULETOCLOSETIMEOUT has a value

startToCloseTimeout

The maximum amount of time a worker may take to process the activity task.

Accessible with the following methods

Method Description
GET_STARTTOCLOSETIMEOUT() Getter for STARTTOCLOSETIMEOUT, with configurable default
ASK_STARTTOCLOSETIMEOUT() Getter for STARTTOCLOSETIMEOUT w/ exceptions if field has no
HAS_STARTTOCLOSETIMEOUT() Determine if STARTTOCLOSETIMEOUT has a value

taskList

The task list in which the activity task has been scheduled.

Accessible with the following methods

Method Description
GET_TASKLIST() Getter for TASKLIST

taskPriority

The priority to assign to the scheduled activity task. If set, this overrides any default priority value that was assigned when the activity type was registered.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.

Accessible with the following methods

Method Description
GET_TASKPRIORITY() Getter for TASKPRIORITY, with configurable default
ASK_TASKPRIORITY() Getter for TASKPRIORITY w/ exceptions if field has no value
HAS_TASKPRIORITY() Determine if TASKPRIORITY has a value

decisionTaskCompletedEventId

The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

Accessible with the following methods

Method Description
GET_DCSNTASKCOMPLETEDEVENTID() Getter for DECISIONTASKCOMPLETEDEVENTID

heartbeatTimeout

The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. 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 is ignored.

Accessible with the following methods

Method Description
GET_HEARTBEATTIMEOUT() Getter for HEARTBEATTIMEOUT, with configurable default
ASK_HEARTBEATTIMEOUT() Getter for HEARTBEATTIMEOUT w/ exceptions if field has no va
HAS_HEARTBEATTIMEOUT() Determine if HEARTBEATTIMEOUT has a value