Workflow Docs
AI/LLM: This documentation page is available in plain markdown format at/workflow/latest/docs/reference/functions/runWorkflow.md
runWorkflow
Function: runWorkflow()#
ts
function runWorkflow(options): AsyncIterable<WorkflowEvent>;Defined in: packages/workflow-core/src/engine/run-workflow.ts:59
Drive a workflow to completion or pause. Returns an AsyncIterable of every event the engine appends to the run's log, in order.
The same events are simultaneously persisted via runStore.appendEvent — the iterable and the persisted log share one shape (the log IS the transport).
Parameters#
options#
Returns#
AsyncIterable<WorkflowEvent>