This is preview documentation. The official release is not yet available.
Create and validate the process
The examples use Bash,curl, and jq. Set SERVICE_URL to your Service address, TOKEN to a user Bearer token, and TENANT / NAMESPACE to your authorized scope; see API authentication. Define this request helper:
AGENT_ID to a task-capable Agent and APPROVER_ID to the reviewer’s account identifier. This process drafts a report, then waits for approval:
key is unique. Edges connect an upstream state to downstream work. input maps field names to CEL expressions; here it passes the request’s request field to the draft node. Expressions can read run, issue, trigger, and predecessor nodes, rather than execute arbitrary scripts. Validation checks types, references, expressions, and cycles; verify target availability separately.
Publish and start execution
Publish the validated definition and save the revision ID. To edit later, callPATCH /api/v1/orchestration-definitions/{definitionId} with draftSpec and expectedVersion, then publish again.
Follow nodes, output, and approval
request_id, expected_version, and decision to the Turn’s /actions. Approval allows the workflow to continue; an application key cannot replace the designated human identity.
Add process capabilities gradually
After adding a signal node waiting for
report.ready, a business system can send:
Cancellation and operational control
Applications cancel a Turn through/cancel, check capabilities before /resume, and submit a new Turn to start fresh work. The Run APIs below serve Console operations and workflow diagnosis. Obtain the Run ID from the associated execution record; it is not the Turn ID.
POST /api/v1/orchestration-runs/{runId}/pause stops new node dispatch while running steps may still return. /resume resumes scheduling; /cancel requests cancellation of nodes, tasks, and child runs without deleting or accepting the Issue. Use {} as the request body.
After a terminal state, post {"idempotencyKey":"weekly-report-retry-001"} to /rerun to create a new Run with lineage. Include input to replace the input. Nodes support timeoutSeconds, retry, and failurePolicy, including fail_fast, continue, and partial_success. Retries do not undo existing external side effects.
Create a Session with target:{"type":"workflow","id":"WORKFLOW_ID","revisionId":"REVISION_ID"}. Omitting revisionId selects the latest published revision at creation. Existing Sessions do not switch automatically. See Console for the designer and run graph.