Skip to content

/AWS1/CL_SWF=>RESPONDDECISIONTASKCOMPLETED()

About RespondDecisionTaskCompleted

Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. The decisions argument specifies the list of decisions made while processing the task.

A DecisionTaskCompleted event is added to the workflow history. The executionContext specified is attached to the event in the workflow execution history.

Access Control

If an IAM policy grants permission to use RespondDecisionTaskCompleted, it can express permissions for the list of decisions in the decisions parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

Method Signature

IMPORTING

Required arguments:

IV_TASKTOKEN TYPE /AWS1/SWFTASKTOKEN /AWS1/SWFTASKTOKEN

The taskToken from the DecisionTask.

taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Optional arguments:

IT_DECISIONS TYPE /AWS1/CL_SWFDECISION=>TT_DECISIONLIST TT_DECISIONLIST

The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

IV_EXECUTIONCONTEXT TYPE /AWS1/SWFDATA /AWS1/SWFDATA

User defined context to add to workflow execution.

IO_TASKLIST TYPE REF TO /AWS1/CL_SWFTASKLIST /AWS1/CL_SWFTASKLIST

The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution.

IV_TASKLISTSCHDTOSTARTTMOUT TYPE /AWS1/SWFDURINSECONDSOPTIONAL /AWS1/SWFDURINSECONDSOPTIONAL

Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.

If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.