Pular para o conteúdo
Ir para o conteúdo

Activate a workflow

An inactive workflow is a frozen definition: no trigger starts it. Activation arms triggers and allows automatic runs.

🔁 Before you activate

Quick checklist:

  • Simulate passes on happy path and one error path.
  • Credentials and SMTP tested.
  • Dolibarr rights OK for the execution account: Permissions.
  • Trigger configured (Cron, webhook, object event, or manual only).

🔁 Activate

  1. Open the workflow → Settings tab or Active toggle.
  2. Choose the primary trigger if several exist.
  3. Save. State becomes Active; runtime stores next_run_at for Cron.

🔁 Runtime state

StateMeaning
DraftFree editing, no auto run
ActiveTriggers armed
PausedDefinition kept, auto runs suspended
DisabledLike pause; ops alert possible

Deactivation keeps run history: you can re-enable without losing logs.

🔁 Deactivate cleanly

  1. Set the workflow to Paused or Disabled.
  2. Wait for in-flight runs to finish (cron queue).
  3. Edit the graph if needed, Simulate again, then reactivate.

During major Dolibarr maintenance, disable affected Knot workflows first.

🔁 Triggers to verify on activation

TypeCheck
CronServer timezone, valid expression — Cron
WebhookRotated secret, TLS — Webhook
Object eventCorrect object and create/update/delete — Object event

Next steps