Skip to main content
defineWorkflowBlockExecute wires an execute handler to a step block. The handler runs each time a workflow run reaches this step.

Parameters

block
WorkflowBlock
required
The block returned by defineWorkflowBlock in block.ts.
execute
function
required
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