StateNode
Defined in: src/types/index.ts:242
A positioned graph node in the internal diagram model, produced from an ASL state.
Properties
Section titled “Properties”assignedVariables?
Section titled “assignedVariables?”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?
Section titled “children?”children?: string[];Defined in: src/types/index.ts:249
Child node IDs (for container nodes like Parallel/Map)
collapsed?
Section titled “collapsed?”collapsed?: boolean;Defined in: src/types/index.ts:251
Whether this container node is a collapse placeholder (its subgraph was removed).
collapsedCount?
Section titled “collapsedCount?”collapsedCount?: number;Defined in: src/types/index.ts:253
Number of real descendant states hidden behind a collapsed container placeholder.
failCause?
Section titled “failCause?”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?
Section titled “failError?”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?
Section titled “height?”height?: number;Defined in: src/types/index.ts:264
iconUrl?
Section titled “iconUrl?”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?
Section titled “inputArguments?”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?
Section titled “integrationPattern?”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?
Section titled “isContainer?”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?
Section titled “isDistributedMap?”isDistributedMap?: boolean;Defined in: src/types/index.ts:287
Whether this Map state runs in distributed mode (ProcessorConfig.Mode: 'DISTRIBUTED')
isEnd?
Section titled “isEnd?”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?
Section titled “isExpressMap?”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?
Section titled “itemBatching?”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?
Section titled “items?”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?
Section titled “itemSelector?”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?
Section titled “itemsPath?”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?
Section titled “mapLabel?”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?
Section titled “maxConcurrency?”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?
Section titled “output?”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?
Section titled “parent?”parent?: string;Defined in: src/types/index.ts:338
Parent node ID (for nodes inside Parallel/Map containers)
serviceType?
Section titled “serviceType?”serviceType?: string;Defined in: src/types/index.ts:340
AWS service identifier for Task states (e.g., ‘lambda’, ‘s3’)
style?
Section titled “style?”style?: NodeStyle;Defined in: src/types/index.ts:341
taskHeartbeat?
Section titled “taskHeartbeat?”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?
Section titled “taskTimeout?”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?
Section titled “toleratedFailure?”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?
Section titled “waitDuration?”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?
Section titled “width?”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