On this page
Sommatic Docs
Open portal

Lifecycle

The objects of a workflow and how they move: from draft to version, from version to runs, and how every node of a run executes as a Link Loom worker with its own state machine.

View as Markdown
Open in

A workflow has two lives at once: the draft you are editing and the versions you have published. Knowing which one a call runs is the difference between a safe change and a surprise in production.

This section follows a workflow from the draft to a finished run, and then goes one level down: what happens to each node while it runs.

The four objects

ObjectAPI nameWhat it holds
Flow definitionflow-definitionName, slug, description and the draft: draft_nodes, draft_edges and editor_state (canvas positions and zoom). It also points to its latest version (latest_version_id, version_counter).
Flow versionflow-versionAn immutable copy of the draft graph (graph.nodes, graph.edges) with a number (version), a name such as Order intake V3 and the flag is_default.
Flow instanceflow-instanceOne run: its status, the node it is on, its variables and the last envelope.
Flow instance resultflow-instance-resultThe outcome of a run: status, duration, final envelope, an outcome category (success or error) and a summary of the steps.

Each node of a run also leaves a node execution with its output, port and timing.

In this section

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs