DecisionTask

A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.

AutomationTask CoordinationWorkflows

Properties

Name Type Description
taskToken object
startedEventId object
workflowExecution object
workflowType object
events object
nextPageToken object
previousStartedEventId object
View JSON Schema on GitHub

JSON Schema

amazon-swf-decisiontask-schema.json Raw ↑
{
  "type": "object",
  "required": [
    "taskToken",
    "startedEventId",
    "workflowExecution",
    "workflowType",
    "events"
  ],
  "properties": {
    "taskToken": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TaskToken"
        },
        {
          "description": "The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task."
        }
      ]
    },
    "startedEventId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EventId"
        },
        {
          "description": "The ID of the <code>DecisionTaskStarted</code> event recorded in the history."
        }
      ]
    },
    "workflowExecution": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WorkflowExecution"
        },
        {
          "description": "The workflow execution for which this decision task was created."
        }
      ]
    },
    "workflowType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WorkflowType"
        },
        {
          "description": "The type of the workflow execution for which this decision task was created."
        }
      ]
    },
    "events": {
      "allOf": [
        {
          "$ref": "#/components/schemas/HistoryEventList"
        },
        {
          "description": "A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task."
        }
      ]
    },
    "nextPageToken": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PageToken"
        },
        {
          "description": "<p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p>"
        }
      ]
    },
    "previousStartedEventId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EventId"
        },
        {
          "description": "The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider."
        }
      ]
    }
  },
  "description": "A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DecisionTask"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-swf-decisiontask"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.