defineWorkflowBlockExecute wires an execute handler to a step block. The handler runs each time a workflow run reaches this step.
Parameters
The block returned by
defineWorkflowBlock in block.ts.The handler function. Receives a context object with
config (typed from the block’s configSchema) and metadata.metadata provides context about the current run and workflow:Example
execute.ts
See also
- Finishing a deferred step: deferred step handler
- Outcome schema: typing the data field in return values
- File structure: complete folder layout for trigger and step blocks