MCPcopy Index your code
hub / github.com/simstudioai/sim / executeWorkflowSync

Method executeWorkflowSync

packages/ts-sdk/src/index.ts:323–330  ·  view source on GitHub ↗

* Execute a workflow synchronously (ensures non-async mode) * @param workflowId - The ID of the workflow to execute * @param input - Input data to pass to the workflow * @param options - Execution options (timeout, stream, etc.)

(
    workflowId: string,
    input?: any,
    options: ExecutionOptions = {}
  )

Source from the content-addressed store, hash-verified

321 * @param options - Execution options (timeout, stream, etc.)
322 */
323 async executeWorkflowSync(
324 workflowId: string,
325 input?: any,
326 options: ExecutionOptions = {}
327 ): Promise<WorkflowExecutionResult> {
328 const syncOptions = { ...options, async: false }
329 return this.executeWorkflow(workflowId, input, syncOptions) as Promise<WorkflowExecutionResult>
330 }
331
332 /**
333 * Validate that a workflow is ready for execution

Callers

nothing calls this directly

Calls 1

executeWorkflowMethod · 0.95

Tested by

no test coverage detected