jamjet_run_workflow
Start a new durable workflow execution by providing a registered workflow ID and initial data. The workflow begins processing immediately, returning an execution ID for subsequent tracking or cancellation.
Instructions
Start a new durable workflow execution. Use this to kick off a workflow that has already been registered with the runtime. Side effects: creates a new execution record, appends WorkflowStarted and NodeScheduled events to the event log, and enqueues a work item for the first node — the workflow begins processing immediately. Returns a JSON object with the execution_id (format: exec_) that you can pass to jamjet_get_execution, jamjet_get_events, jamjet_cancel_execution, or jamjet_approve. This operation is not reversible — use jamjet_cancel_execution to stop a running workflow. Fails if the workflow_id + version combination is not registered. No authentication required (local-only server).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Initial state data passed to the workflow's first node. Shape must match the workflow's state_schema. | |
| tenant_id | No | Tenant partition for multi-tenant isolation. Defaults to 'default'. Execution and events are scoped to this tenant. | |
| workflow_id | Yes | ID of a registered workflow to execute. Must match a workflow previously loaded into the runtime. | |
| workflow_version | No | Semantic version of the workflow to run. Defaults to '1.0.0' if omitted. Use when multiple versions are registered. |