Workflow automation

What is a workflow engine, and when do you actually need one?

Plenty of teams already run a workflow engine by accident, built from a status column, a cron job and a retry counter.

Open Dimension AI7 min read

What is a workflow engine?

A workflow engine is software that runs a defined sequence of steps, records the state of each one, and decides what happens next. It handles waiting, retries, timeouts and human approvals, so a process that takes minutes or months can survive crashes and resume from the last completed step.

The short version

  • A workflow engine runs a defined sequence of steps and stores the state of each one, so a process can resume after a failure.
  • Durable state across long waits is what separates a workflow engine from a cron job, a queue or a script.
  • Retries mean a step can run more than once, so any step that charges, sends or writes must be safe to repeat.
  • An AI agent chooses its next action at run time, while a workflow engine follows a path defined in advance, and the two work well together.
  • A workflow engine is not worth adding to a short process that can safely be rerun from the start.

What is a workflow engine?

A workflow engine is software that executes a process defined as a series of steps and keeps a durable record of how far each run has got. The definition says what should happen. The engine makes it happen, one step at a time, and writes down each result before moving on.

That record is the point. If a server restarts halfway through a run, the engine reads the record and carries on from the last completed step. It does not start again, and it does not lose the run. The same record lets a process pause for a week waiting on a signature, and it answers the question every operations team eventually asks: 'where is this one stuck?'

The term covers a wide range of products. Some are visual tools where an analyst draws the process. Others are code libraries where an engineer writes an ordinary function and the engine makes it durable. They differ in who uses them, but the job is the same: run the steps, hold the state, handle the failures.

How does a workflow engine work?

A workflow engine loads a process definition, creates a run for each new case, then loops: find the next step, hand it to a worker, record the outcome, decide what follows. State lives in a database, not in the memory of the machine doing the work. That separation is what lets a run outlive any single server.

Take invoice approval as an illustration. An invoice arrives, a model extracts the fields, a rule checks them against the purchase order, and anything over a set limit waits for a manager. That wait might last days. No process sits running during it, only a record that says 'waiting for approval, escalate on Friday'. When the manager responds, a worker picks up the next step and posts the invoice to the accounts system.

What are the parts of a workflow engine?

  • Definition: the steps, their order and the branching rules, written as code, a diagram or a config file.
  • State store: a database holding every run and the result of every completed step.
  • Scheduler: decides which step is due next, including timers and deadlines.
  • Workers: the processes that do the actual work, such as calling an API or a model.
  • Retry and timeout policy: what to do when a step fails or takes too long.
  • History: a record of what ran, when, with which inputs and what result.

What is a workflow engine used for?

A workflow engine is used for processes that span several systems or people and take longer than a single request. Common examples are customer onboarding, invoice and expense approval, document processing, order fulfilment, claims handling and long-running AI agent tasks.

What they have in common is a cost to getting stuck. A failed page load can be retried by the user. A half-finished onboarding, with the account created and the contract unsent, needs something that knows it is half finished.

What is the difference between a workflow engine, a cron job and a queue?

The difference is memory across time. A cron job knows when to start. A queue knows what is waiting. A script knows what to do while it is running. None of them, alone, remembers how far a multi-step process has got once the machine doing the work goes away.

Many teams build a workflow engine by accident for this reason. They add a status column to a table, a cron job that looks for stuck rows, a retry counter, then a second status for 'waiting on finance'. That can be the right call for a two-step process. It stops being the right call when the status logic is harder to reason about than the work itself.

How do these tools compare?

ToolWhat it remembersGood forWhere it breaks
ScriptNothing once it exitsShort jobs you can safely rerunA failure partway through a job with side effects
Cron jobThe scheduleSingle tasks at fixed timesSeveral steps, or waiting on a person
Message queueMessages not yet handledPassing work between servicesYou build ordering, timeouts and process state yourself
Workflow engineEvery run and every step resultMulti-step processes with waits and failuresShort, simple tasks, where it adds a system to run for no gain

What is the difference between a workflow engine and an AI agent?

A workflow engine follows a path defined in advance. An AI agent chooses its next action at run time, based on what it has seen so far. The engine gives you predictability and an audit trail. The agent handles cases nobody wrote a branch for, and it is harder to test as a result.

They are not competitors. The design we would start from has a workflow engine holding the process and a model doing the judgement inside specific steps: classifying a document, extracting fields, drafting a reply. The fixed parts stay fixed. Model output gets checked before it can trigger anything expensive or hard to undo.

Long-running agents need an engine's properties anyway. A model call can time out and a tool can fail halfway. An agent that dies on step nine should not repeat the eight steps before it, particularly if one of them sent an email. Saved state, controlled retries and an approval step are what let you leave an agent running overnight.

One survey points at the gap between agent ambitions and working systems, though it needs care. Coleman Parkes polled 1,150 senior IT decision makers at organisations with more than 1,000 employees, and the release reports three quarters of organisations admitting a gap between agentic AI vision and reality. Camunda commissioned it, Camunda sells workflow software, and the answers are self-reported.

When do you need a workflow engine?

You need a workflow engine when a process has several steps, waits on something outside your control, and does real damage if it fails halfway. One of those alone rarely justifies it. Two or three together usually do.

What signals that you need a workflow engine?

  • A run can last longer than your deployment cycle, so in-memory state will not survive it.
  • A person has to approve or supply something partway through.
  • Steps have side effects, such as taking payment or sending a letter, so restarting from the top is not an option.
  • People regularly ask where a specific case has got to, and the answer takes a database query.
  • You need a record of who approved what and when.
  • Your retry and escalation logic has grown into its own small system.

When is a workflow engine not worth it?

A workflow engine is not worth adding when the process is short, has no outside waits, and can be rerun safely from the start. A function with a retry, or a scheduled job that alerts on failure, is cheaper to run and easier to understand.

An engine is also a new system with its own failure modes. Someone has to operate it, upgrade it and learn its rules. Some code-based engines rebuild state by replaying history, which restricts what workflow code may do and makes changing a definition harder than changing a normal function, because runs already in flight still expect the old one.

If the process is a few steps between business apps, skip the engine and use a hosted automation platform. Zapier, for example, lists $19.99 for its 750-task tier. That will not suit a process with complex state or heavy volume, but plenty of processes have neither.

What does a workflow engine cost?

A workflow engine costs its licence or usage fee plus the engineering time to run it, and the second number is usually the larger one. Published prices are only a starting point, because the plan details add to them.

Temporal shows why. Its pricing page leads with a 'Starting at' figure, and the same plan lists separate storage charges and developer support at 10% of usage. The headline is not the bill. Model your expected volume against the pricing page before comparing vendors.

Self-hosting swaps the fee for staff time. The US Bureau of Labor Statistics gives a wage figure of $134,040 across software developers, QA analysts and testers, with a May 2025 reference date and before benefits and payroll taxes. That is $11,170 a month in wages for one person. If a free engine takes a meaningful share of someone's month to keep running, it is not free. That figure is for the US, so adjust for where your team is.

How do you choose a workflow engine?

Choose by who will change the process, how long runs last, and who will operate the engine. Those three questions rule out most options faster than any feature table.

Which type of workflow engine fits which situation?

Your situationType to look atExamples
A few steps between business apps, owned by non-engineersHosted automation platformZapier, Make
The process lives inside one platform you already pay forThat platform's built-in flow toolSalesforce Flow
Analysts and engineers share a modelled business processBPMN-based process engineCamunda
Engineers own long-running logic in application codeCode-first durable execution engineTemporal
Scheduled data pipelinesData orchestratorApache Airflow
An agent that needs saved state and human approvalAgent framework with checkpoints, or a durable engine underneathLangGraph, Temporal

What do teams get wrong when they adopt a workflow engine?

The classic mistake is assuming the engine makes each step safe. It does not. An engine retries, and a retry after a lost response means a step can run twice even though it worked the first time.

Picture a step that charges a card. The payment provider takes the money, the network drops before the response arrives, and the engine records a failure and retries. Unless the step sends an idempotency key that the provider recognises, the customer pays twice. Every step that charges, sends or writes needs to be safe to repeat.

The other gaps are quieter. Decide what happens when retries run out, because a run sitting in a failed state that nobody watches is just a slower way of losing it. Set a timeout on every external call and every human wait. Plan how definitions change while old runs are still in flight. And remember that the history is a data store: if steps pass personal data as inputs, the engine now holds a copy, with its own retention and access rules.

Questions people ask

Is a workflow engine the same as workflow automation?

Not quite. Workflow automation is the outcome: a process that runs without someone pushing it along. A workflow engine is one component that can deliver it, the part that executes steps and holds state. Tools like Zapier package an engine with connectors and a visual builder, so you never see the engine itself. You only need to choose an engine directly when you are building the process into your own software.

Do AI agents need a workflow engine?

Short-lived agents usually do not. If an agent answers one question in a few seconds and can be rerun on failure, a workflow engine adds more than it gives back. Agents that run for a long time, call tools with side effects or wait for human approval do need its properties: saved state, controlled retries and a record of each step. Whether that comes from a dedicated engine or an agent framework with checkpoints depends on the rest of your system.

Should we build our own workflow engine?

Almost certainly not, unless the requirement is small enough that you would not call it an engine. A status column and a retry job are fine for a two-step process. Once you need timers, versioning, concurrency limits, audit history and recovery from partial failure, you are rebuilding a product that already exists, and you will own its bugs. Buy or adopt something, then spend your engineering time on the steps that are specific to your business.

Can we use an open-source workflow engine to save money?

You can avoid a licence fee, but you do not avoid the cost. Self-hosting means running the engine and its database, watching them, upgrading them and being on call when they stop. That is sensible if you already operate similar infrastructure, or if data has to stay in your environment. If it would be the first stateful system your team runs, a hosted option is often cheaper once engineering time is counted.

How long does it take to add a workflow engine?

A first working process usually comes quickly. The time goes on the work around it: making each step safe to repeat, deciding what happens when retries run out, wiring up alerts, and working out how to change a definition while runs are in flight. We cannot give an honest number without seeing the process, and we would be wary of anyone who does. Start with one process, not a migration.

Related on this site

Sources

  1. Software Developers, Quality Assurance Analysts, and Testers : Occupational Outlook Handbook: : U.S. Bureau of Labor Statistics, BLS Occupational Employment and Wage Statistics program, an employer survey, reference date May 2025. This is a wage figure, so benefits and payroll taxes are extra. It covers software developers only; the page's Quick Facts figure of $134,040 also includes QA analysts and testers. · U.S. Bureau of Labor Statistics, data from 2025
  2. Zapier pricing: Why Zapier is a better value than Make, n8n, and other automation platforms, Vendor's own published price, on a page it says was last updated in June 2026. The same $19.99 price for the 750-task tier also appeared on zapier.com/pricing when checked in November 2026. The quote is a pricing-table entry, not a full sentence, and the 750-task allowance is stated separately on the page. · Zapier, data from 2026
  3. Temporal Platform Pricing Options | Temporal, Vendor's own published price, read in November 2026. The quote is pricing-card text under the label 'Starting at', not a full sentence. The same plan lists separate storage charges and developer support at 10% of usage. · Temporal Technologies, data from 2026
  4. Larger enterprises used more e-business apps in 2025 - News articles - Eurostat, 2025 EU survey on ICT usage and e-commerce in enterprises, covering enterprises with at least 10 employees or self-employed persons, so firms under 10 are excluded. Small means 10-49 and large means 250 or more. The page does not state a sample size. The quote is a verbatim fragment of a longer sentence. · Eurostat, data from 2025
  5. Three Quarters of Organizations Admit Gap Between Agentic AI Vision and Reality, Online survey of 1,150 senior IT decision makers at organisations with more than 1,000 employees, conducted September 23 to October 23, 2025, by Coleman Parkes and commissioned by Camunda, which sells workflow software. Results are self-reported. The page's regional split sums to 1,152, not 1,150. · Camunda (fieldwork by Coleman Parkes), data from 2025
  6. 66% Of Small and Mid-Sized Businesses Say Automation Is Essential For Running Their Business, Zapier's own survey of 2,000 US knowledge workers at small and medium businesses, reported in its press release dated April 21, 2021. Fieldwork dates and survey mode are not stated. Respondents were staff, not owners, and Zapier sells automation. The quote is the release's headline, which describes businesses although workers were surveyed. · Zapier, data from 2021
  7. Large Firms With at Least 20 Employees Biggest AI Users, Census Bureau Business Trends and Outlook Survey; the article reviews data collected from December 14, 2025 to May 3, 2026. The article text gives only this upper bound, not an exact rate for this size band. · U.S. Census Bureau, data from 2026

Want someone to look at your workflow?

Thirty minutes, and we will tell you whether there is anything here worth building. Roughly half of these end with us saying not yet.

Book a 30 minute call