Skip to content

js-bao-wss-client


js-bao-wss-client / StartWorkflowOptions

Interface: StartWorkflowOptions ​

Options for starting a workflow

Properties ​

contextDocId? ​

optional contextDocId?: string

Document ID to associate the run with


forceRerun? ​

optional forceRerun?: boolean

If true, terminates any existing run with the same runKey and starts a new one


input? ​

optional input?: Record<string, any>

Input data to pass to the workflow. Defaults to {} if not provided.


meta? ​

optional meta?: Record<string, unknown>

User-defined metadata attached to the run (max 1KB). Returned in listRuns and getStatus.


runKey? ​

optional runKey?: string

Key to identify this run (for idempotency). Auto-generated if not provided.


workflowKey ​

workflowKey: string

The workflow key identifying which workflow to start

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30