Write state
state.writeWrite 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 value
valueInteger Same-type value to write to the state slot.
RequiredDefault:None- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Configuration 1
- Workflow state variable
variablestate-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 value
resultInteger State value after the successful write.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Control and error ports
- Input
inInput · Control - An incoming control signal enters this operation.
- Done
doneOutput · Control - Continue from this result or stage; see the node description for branch conditions.
Version and node identity
Version 1.0.0
sha256:2e00e8753f442a05ea0eee8046b0c11c280a631319a62324f4c8ce5618a7772d