Skip to content

js-bao-wss-client


js-bao-wss-client / WaitForWorkflowResult

Interface: WaitForWorkflowResult ​

Result from WorkflowsAPI.waitFor. Resolved once the run reaches a terminal state.

Properties ​

error? ​

optional error?: WorkflowRunErrorWire | null

Why the run failed, exactly as it arrived — an object from a status read, a string from the terminal workflowStatus frame.


failure? ​

optional failure?: WorkflowRunError

The same error, normalized. Present on a failed result whichever path settled the wait, so a caller reporting a failure does not have to know which one did.


output? ​

optional output?: any

Final output of the run, when available.


skipReason? ​

optional skipReason?: "LOCK_CONTENTION"

Why the run did not run, when status === "skipped".


status ​

status: WaitForWorkflowStatus

Terminal status of the run. Never "running".

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