Value passed by an incoming Step movement.
Runs application logic and produces the next durable decision. Async handlers that record heartbeats must accept AsyncContext and return a Promise.
Optional ReadonlyinputCodec used for every incoming input value.
Omit this for JSON objects. Scalar wire kinds still need stringCodec, booleanCodec, int64Codec, doubleCodec, or bytesCodec.
OptionalwaitDescribes durable conditions required before execution. Async handlers that record heartbeats must accept AsyncContext and return a Promise.
OptionalgetReturns this Step's static options.
Static options, or undefined for Flow and server defaults.
Returns the protocol Step type.
A non-empty Step type unique within the containing Flow.
Defines one typed unit of durable Flow application logic.
Example