中文
Node Documentation

Write state

DataTarget independentstate.write

Write one exactly typed value to a Run-local state slot, then continue through Done.

Example use

Write a recognition result to a state variable of the same type for other branches to read.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

This preview uses an integer variable named example with initial value 0. Select your own workflow variable when using the node.

Loading node preview…

This node has dynamic parameters or ports. The reference below describes the initial example; after editing, inspect the preview for the current ports.

Data inputs 1

New valuevalueInteger

Same-type value to write to the state slot.

RequiredDefault: None
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Configuration 1

Workflow state variablevariablestate-variable

Select one explicitly declared typed state slot from this Workflow.

RequiredDefault: None
  • Minimum characters: 1
  • Maximum characters: 128
  • Pattern: ^[A-Za-z0-9_][A-Za-z0-9._-]*$

Data outputs 1

Written valueresultInteger

State value after the successful write.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Control and error ports

InputinInput · Control
An incoming control signal enters this operation.
DonedoneOutput · Control
Continue from this result or stage; see the node description for branch conditions.
Version and node identity

Version 1.0.0

sha256:2e00e8753f442a05ea0eee8046b0c11c280a631319a62324f4c8ce5618a7772d