Skip to content

StateNode

Defined in: src/types/index.ts:242

A positioned graph node in the internal diagram model, produced from an ASL state.

assignedVariables?: string[];

Defined in: src/types/index.ts:247

Names of the variables a state assigns via ASL Assign, in declaration order. Empty/absent when the state assigns nothing.


children?: string[];

Defined in: src/types/index.ts:249

Child node IDs (for container nodes like Parallel/Map)


collapsed?: boolean;

Defined in: src/types/index.ts:251

Whether this container node is a collapse placeholder (its subgraph was removed).


collapsedCount?: number;

Defined in: src/types/index.ts:253

Number of real descendant states hidden behind a collapsed container placeholder.


failCause?: string;

Defined in: src/types/index.ts:258

A Fail state’s cause, pre-formatted for display (e.g. cause: Payment declined, or the path or JSONata expression it is read from). Absent for other state types.


failError?: string;

Defined in: src/types/index.ts:263

A Fail state’s error name, pre-formatted for display (e.g. error: PaymentFailed, or the path or JSONata expression it is read from). Absent for other state types.


height?: number;

Defined in: src/types/index.ts:264


iconUrl?: string;

Defined in: src/types/index.ts:266

URL to AWS service icon (CDN path for Task states)


id: string;

Defined in: src/types/index.ts:267


inputArguments?: string;

Defined in: src/types/index.ts:273

The Arguments a JSONata-mode state passes to its integration, pre-formatted for display (e.g. args FunctionName, Payload). Absent when not set. Not named arguments, which cannot be destructured in strict-mode code.


integrationPattern?: string;

Defined in: src/types/index.ts:279

A Task state’s service integration pattern, pre-formatted for display: sync for a .sync / .sync:2 resource, callback for .waitForTaskToken. Absent for a request-response Task.


isContainer?: boolean;

Defined in: src/types/index.ts:285

Whether this node is a container (a Parallel or Map state) with nested states drawn inside it. A Parallel with no branches or a Map with no processor has nothing to contain and is a plain node instead.


isDistributedMap?: boolean;

Defined in: src/types/index.ts:287

Whether this Map state runs in distributed mode (ProcessorConfig.Mode: 'DISTRIBUTED')


isEnd?: boolean;

Defined in: src/types/index.ts:293

Whether this state ends its enclosing scope (the machine, a Parallel branch or a Map processor): ASL End: true, or a Succeed or Fail state, which are terminal by type. Absent otherwise.


isExpressMap?: boolean;

Defined in: src/types/index.ts:299

Whether this Distributed Map runs its child workflows as Express executions (ProcessorConfig.ExecutionType: 'EXPRESS'). Absent for STANDARD and for inline Maps, where ExecutionType has no effect.


itemBatching?: string;

Defined in: src/types/index.ts:304

A Map state’s ItemBatcher sizing, pre-formatted for display (e.g. batches of 50). Absent when the Map does not batch.


items?: string;

Defined in: src/types/index.ts:314

The JSONata Items a Map state iterates, pre-formatted for display (e.g. items $states.input.orders). Absent when the Map sets no Items.


itemSelector?: string;

Defined in: src/types/index.ts:309

How a Map state shapes each item for its processor, pre-formatted for display (e.g. selector item, index). Absent when the Map sets no ItemSelector.


itemsPath?: string;

Defined in: src/types/index.ts:319

The array a Map state iterates, pre-formatted for display (e.g. items $.orders). Absent when the Map sets no ItemsPath.


label: string;

Defined in: src/types/index.ts:320


mapLabel?: string;

Defined in: src/types/index.ts:325

A Distributed Map’s child-execution name prefix, pre-formatted for display (e.g. label OrderBatch). Absent when the Map sets no Label.


maxConcurrency?: string | number;

Defined in: src/types/index.ts:331

A Map state’s MaxConcurrency, when set. Displayed on the container header. A JSONata expression is stored unwrapped ($limit, not {% $limit %}). Without a MaxConcurrency, holds the MaxConcurrencyPath reference path as written.


output?: string;

Defined in: src/types/index.ts:336

The Output a JSONata-mode state produces, pre-formatted for display (e.g. output orderId, total). Absent when not set.


parent?: string;

Defined in: src/types/index.ts:338

Parent node ID (for nodes inside Parallel/Map containers)


serviceType?: string;

Defined in: src/types/index.ts:340

AWS service identifier for Task states (e.g., ‘lambda’, ‘s3’)


style?: NodeStyle;

Defined in: src/types/index.ts:341


taskHeartbeat?: string;

Defined in: src/types/index.ts:346

A Task state’s heartbeat interval, pre-formatted for display (e.g. heartbeat 10s, or the path or JSONata expression it is read from). Absent when not set.


taskTimeout?: string;

Defined in: src/types/index.ts:351

A Task state’s timeout, pre-formatted for display (e.g. timeout 30s, or the path or JSONata expression it is read from). Absent when not set.


toleratedFailure?: string;

Defined in: src/types/index.ts:356

A Map state’s failure tolerance, pre-formatted for display (e.g. tolerate 5%). Absent when no tolerance is configured.


type: NodeType;

Defined in: src/types/index.ts:357


waitDuration?: string;

Defined in: src/types/index.ts:362

How long a Wait state waits, pre-formatted for display (e.g. 5s, or the path or JSONata expression the duration is read from). Absent for other state types.


width?: number;

Defined in: src/types/index.ts:363


x?: number;

Defined in: src/types/index.ts:364


y?: number;

Defined in: src/types/index.ts:365