Skip to content

Latest commit

 

History

History
199 lines (107 loc) · 3.66 KB

File metadata and controls

199 lines (107 loc) · 3.66 KB

Home > @aws/durable-execution-sdk-js > OperationSubType

OperationSubType enum

Operation subtype enumeration for categorizing different types of durable operations.

This enum provides fine-grained classification of durable operations beyond the basic operation types. Subtypes enable improved observability for specific operation patterns.

Each subtype corresponds to a specific durable context method or execution pattern.

Signature:

export declare enum OperationSubType

Enumeration Members

Member

Value

Description

CALLBACK

"Callback"

A callback creation operation (context.createCallback).

Represents the creation of a callback that external systems can complete. Used for human-in-the-loop workflows and external system integration.

CHAINED_INVOKE

"ChainedInvoke"

A chained invocation operation (context.invoke).

Represents calling another durable function with input parameters and waiting for its completion. Used for function composition and workflows.

MAP

"Map"

A map operation (context.map).

Represents parallel processing of an array of items with concurrency control and completion policies. Each map operation coordinates multiple iterations.

MAP_ITERATION

"MapIteration"

An individual iteration within a map operation.

Represents the processing of a single item within a context.map call. Each iteration runs in its own child context with isolated state.

PARALLEL

"Parallel"

A parallel execution operation (context.parallel).

Represents concurrent execution of multiple branches with optional concurrency control and completion policies.

PARALLEL_BRANCH

"ParallelBranch"

An individual branch within a parallel operation.

Represents a single branch of execution within a context.parallel call. Each branch runs in its own child context with isolated state.

RUN_IN_CHILD_CONTEXT

"RunInChildContext"

A child context operation (context.runInChildContext).

Represents execution within an isolated child context with its own step counter and state tracking. Used for grouping related operations.

STEP

"Step"

A durable step operation (context.step).

Represents atomic operations with automatic retry and checkpointing. Steps are the fundamental building blocks of durable executions.

WAIT

"Wait"

A wait operation (context.wait).

Represents time-based delays that pause execution for a specified duration. Waits allow long-running workflows without keeping invocations active.

WAIT_FOR_CALLBACK

"WaitForCallback"

A wait for callback operation (context.waitForCallback).

Represents waiting for an external system to complete a callback, combining callback creation with submission logic.

WAIT_FOR_CONDITION

"WaitForCondition"

A wait for condition operation (context.waitForCondition).

Represents periodic checking of a condition until it's met, with configurable polling intervals and wait strategies.