Skip to content
Skip to content

Workflows and runs

A workflow is the versioned definition: nodes, edges, triggers, and settings. A run is one concrete pass of that definition at a point in time, with status and logs.

💡 Definition vs execution

WorkflowRun
NatureJSON model + Dolibarr metadataExecution instance
LifecycleDraft → active → archivedqueued → running → terminal
StorageInternal llx_knot_* tablesExecutions history
IdempotencyKeys on nodesApplied on each retry

💡 Workflow lifecycle

DraftActiveArchivedTriggers armed
  • Draft: free editing; Simulate allowed when Problems is clean.
  • Active: triggers (cron, webhook, object event) can create runs.
  • Archived: no new runs; history kept.

💡 Run states

queued→running→successerrorcancelledskipped
StatusMeaning
queuedWaiting for Knot cron or execution slot
runningEngine processing the node chain
successFinished without blocking error
errorFailure — check per-node logs
cancelledManual cancel
skippedBranch not taken (e.g. If/Else)

💡 See also