Interface: Workflow<S, I>
Defined in: sdk/ts/sdk/src/core/workflow.ts:52
A defined workflow: the value defineWorkflow returns and the host registers. S is the state type, I the start-input type.
Type Parameters
S
S = unknown
I
I = unknown
Properties
def
readonlydef:WorkflowDef<S,I>
Defined in: sdk/ts/sdk/src/core/workflow.ts:60
The definition, as given.
digest
readonlydigest:string
Defined in: sdk/ts/sdk/src/core/workflow.ts:58
Content hash of name; runs pin it as their component digest.
kind
readonlykind:"workflow"
Defined in: sdk/ts/sdk/src/core/workflow.ts:54
Discriminator the config loader uses to find workflows among a module's exports.
name
readonlyname:string
Defined in: sdk/ts/sdk/src/core/workflow.ts:56
The name given to defineWorkflow; what a run is started by.
Methods
reduce()
reduce(
stateJson,event,initInput?):ReductionWire
Defined in: sdk/ts/sdk/src/core/workflow.ts:66
Drive one event. Pass initInput for the started event (state is built by init); otherwise stateJson is the checkpoint to fold onto. Throws when no handler is registered for the event type.
Parameters
stateJson
string | null