swf_respond_decision_task_completed: Used by deciders to tell the service that the DecisionTask...

Description Usage Arguments Value Request syntax

View source: R/swf_operations.R

Description

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 respond_decision_task_completed, 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.

Usage

1
2
swf_respond_decision_task_completed(taskToken, decisions,
  executionContext)

Arguments

taskToken

[required] 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.

decisions

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

executionContext

User defined context to add to workflow execution.

Value

An empty list.

Request syntax

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
svc$respond_decision_task_completed(
  taskToken = "string",
  decisions = list(
    list(
      decisionType = "ScheduleActivityTask"|"RequestCancelActivityTask"|"CompleteWorkflowExecution"|"FailWorkflowExecution"|"CancelWorkflowExecution"|"ContinueAsNewWorkflowExecution"|"RecordMarker"|"StartTimer"|"CancelTimer"|"SignalExternalWorkflowExecution"|"RequestCancelExternalWorkflowExecution"|"StartChildWorkflowExecution"|"ScheduleLambdaFunction",
      scheduleActivityTaskDecisionAttributes = list(
        activityType = list(
          name = "string",
          version = "string"
        ),
        activityId = "string",
        control = "string",
        input = "string",
        scheduleToCloseTimeout = "string",
        taskList = list(
          name = "string"
        ),
        taskPriority = "string",
        scheduleToStartTimeout = "string",
        startToCloseTimeout = "string",
        heartbeatTimeout = "string"
      ),
      requestCancelActivityTaskDecisionAttributes = list(
        activityId = "string"
      ),
      completeWorkflowExecutionDecisionAttributes = list(
        result = "string"
      ),
      failWorkflowExecutionDecisionAttributes = list(
        reason = "string",
        details = "string"
      ),
      cancelWorkflowExecutionDecisionAttributes = list(
        details = "string"
      ),
      continueAsNewWorkflowExecutionDecisionAttributes = list(
        input = "string",
        executionStartToCloseTimeout = "string",
        taskList = list(
          name = "string"
        ),
        taskPriority = "string",
        taskStartToCloseTimeout = "string",
        childPolicy = "TERMINATE"|"REQUEST_CANCEL"|"ABANDON",
        tagList = list(
          "string"
        ),
        workflowTypeVersion = "string",
        lambdaRole = "string"
      ),
      recordMarkerDecisionAttributes = list(
        markerName = "string",
        details = "string"
      ),
      startTimerDecisionAttributes = list(
        timerId = "string",
        control = "string",
        startToFireTimeout = "string"
      ),
      cancelTimerDecisionAttributes = list(
        timerId = "string"
      ),
      signalExternalWorkflowExecutionDecisionAttributes = list(
        workflowId = "string",
        runId = "string",
        signalName = "string",
        input = "string",
        control = "string"
      ),
      requestCancelExternalWorkflowExecutionDecisionAttributes = list(
        workflowId = "string",
        runId = "string",
        control = "string"
      ),
      startChildWorkflowExecutionDecisionAttributes = list(
        workflowType = list(
          name = "string",
          version = "string"
        ),
        workflowId = "string",
        control = "string",
        input = "string",
        executionStartToCloseTimeout = "string",
        taskList = list(
          name = "string"
        ),
        taskPriority = "string",
        taskStartToCloseTimeout = "string",
        childPolicy = "TERMINATE"|"REQUEST_CANCEL"|"ABANDON",
        tagList = list(
          "string"
        ),
        lambdaRole = "string"
      ),
      scheduleLambdaFunctionDecisionAttributes = list(
        id = "string",
        name = "string",
        control = "string",
        input = "string",
        startToCloseTimeout = "string"
      )
    )
  ),
  executionContext = "string"
)

paws.application.integration documentation built on Aug. 23, 2021, 9:20 a.m.