/AWS1/IF_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¶
METHODS /AWS1/IF_SWF~RESPONDDECISIONTASKCOMPLETED
IMPORTING
!IV_TASKTOKEN TYPE /AWS1/SWFTASKTOKEN OPTIONAL
!IT_DECISIONS TYPE /AWS1/CL_SWFDECISION=>TT_DECISIONLIST OPTIONAL
!IV_EXECUTIONCONTEXT TYPE /AWS1/SWFDATA OPTIONAL
!IO_TASKLIST TYPE REF TO /AWS1/CL_SWFTASKLIST OPTIONAL
!IV_TASKLISTSCHDTOSTARTTMOUT TYPE /AWS1/SWFDURINSECONDSOPTIONAL OPTIONAL
RAISING
/AWS1/CX_SWFOPNOTPERMITTEDFA00
/AWS1/CX_SWFUNKNOWNRESRCFAULT
/AWS1/CX_SWFCLIENTEXC
/AWS1/CX_SWFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_tasktoken TYPE /AWS1/SWFTASKTOKEN /AWS1/SWFTASKTOKEN¶
The
taskTokenfrom the DecisionTask.
taskTokenis generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskTokenmust 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.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->responddecisiontaskcompleted(
io_tasklist = new /aws1/cl_swftasklist( |string| )
it_decisions = VALUE /aws1/cl_swfdecision=>tt_decisionlist(
(
new /aws1/cl_swfdecision(
io_canceltimerdecisionattrs = new /aws1/cl_swfcanctimerdcsnattrs( |string| )
io_cancworkflowexecdcsnattrs = new /aws1/cl_swfcancworkflowexdc00( |string| )
io_complworkflowexecdcsnat00 = new /aws1/cl_swfcmpworkflowexdcs00( |string| )
io_continueasnewworkflowex01 = new /aws1/cl_swfcontinueasnewwor01(
io_tasklist = new /aws1/cl_swftasklist( |string| )
it_taglist = VALUE /aws1/cl_swftaglist_w=>tt_taglist(
( new /aws1/cl_swftaglist_w( |string| ) )
)
iv_childpolicy = |string|
iv_execstarttoclosetimeout = |string|
iv_input = |string|
iv_lambdarole = |string|
iv_taskpriority = |string|
iv_taskstarttoclosetimeout = |string|
iv_workflowtypeversion = |string|
)
io_failworkflowexecdcsnattrs = new /aws1/cl_swffailworkflowexdc00(
iv_details = |string|
iv_reason = |string|
)
io_recordmarkerdecisionattrs = new /aws1/cl_swfrecmarkerdcsnattrs(
iv_details = |string|
iv_markername = |string|
)
io_reqcancactivitytskdcsna00 = new /aws1/cl_swfreqcancactivityt01( |string| )
io_reqcancexternalworkflow02 = new /aws1/cl_swfreqcancexternalw02(
iv_control = |string|
iv_runid = |string|
iv_workflowid = |string|
)
io_schdactivitytaskdcsnattrs = new /aws1/cl_swfschactivitytskdc00(
io_activitytype = new /aws1/cl_swfactivitytype(
iv_name = |string|
iv_version = |string|
)
io_tasklist = new /aws1/cl_swftasklist( |string| )
iv_activityid = |string|
iv_control = |string|
iv_heartbeattimeout = |string|
iv_input = |string|
iv_scheduletoclosetimeout = |string|
iv_scheduletostarttimeout = |string|
iv_starttoclosetimeout = |string|
iv_taskpriority = |string|
)
io_schdlambdafuncdcsnattrs = new /aws1/cl_swfschlambdafuncdcs00(
iv_control = |string|
iv_id = |string|
iv_input = |string|
iv_name = |string|
iv_starttoclosetimeout = |string|
)
io_signalexternalworkflowe02 = new /aws1/cl_swfsignalexternalwo02(
iv_control = |string|
iv_input = |string|
iv_runid = |string|
iv_signalname = |string|
iv_workflowid = |string|
)
io_starttimerdecisionattrs = new /aws1/cl_swfstrttimerdcsnattrs(
iv_control = |string|
iv_starttofiretimeout = |string|
iv_timerid = |string|
)
io_strtchildworkflowexdcsn00 = new /aws1/cl_swfstrtchildworkflo02(
io_tasklist = new /aws1/cl_swftasklist( |string| )
io_workflowtype = new /aws1/cl_swfworkflowtype(
iv_name = |string|
iv_version = |string|
)
it_taglist = VALUE /aws1/cl_swftaglist_w=>tt_taglist(
( new /aws1/cl_swftaglist_w( |string| ) )
)
iv_childpolicy = |string|
iv_control = |string|
iv_execstarttoclosetimeout = |string|
iv_input = |string|
iv_lambdarole = |string|
iv_taskpriority = |string|
iv_taskstarttoclosetimeout = |string|
iv_workflowid = |string|
)
iv_decisiontype = |string|
)
)
)
iv_executioncontext = |string|
iv_tasklistschdtostarttmout = |string|
iv_tasktoken = |string|
).