Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DecisionTask

import type { DecisionTask } from "https://aws-api.deno.dev/v0.4/services/swf.ts?docs=full";

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

interface DecisionTask {
events: HistoryEvent[];
nextPageToken?: string | null;
previousStartedEventId?: number | null;
startedEventId: number;
taskToken: string;
workflowExecution: WorkflowExecution;
workflowType: WorkflowType;
}

§Properties

§

A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

§
nextPageToken?: string | null
[src]

If a NextPageToken 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 nextPageToken. Keep all other arguments unchanged.

The configured maximumPageSize determines how many results can be returned in a single call.

§
previousStartedEventId?: number | null
[src]

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.

§
startedEventId: number
[src]

The ID of the DecisionTaskStarted event recorded in the history.

§
taskToken: string
[src]

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.

§
workflowExecution: WorkflowExecution
[src]

The workflow execution for which this decision task was created.

§
workflowType: WorkflowType
[src]

The type of the workflow execution for which this decision task was created.