Some business processes run for days or weeks and pass through several systems and several people along the way. A loan application is checked, approved, documented and funded, and an online order is reserved, paid for, picked, shipped and sometimes returned. In most organizations the state of that work is spread across each system's status field, a scheduled job or two and somebody's inbox, so when a step fails overnight the case is left neither finished nor failed, and it usually comes to light when the customer calls.
A workflow engine keeps that state in one place. It records each step as it completes, which means a crash, a deployment or a week spent waiting for a signature does not lose the case, and the workflow picks up from the step where it stopped. The engine also handles what scripts and scheduled jobs rarely get right, such as retries with backoff for a system that is briefly down and timeouts for a system or person that never answers. It supports compensation as well, the undoing of earlier steps when a later one fails, which is needed because no transaction spans an ERP, a payment provider and a warehouse.
Choosing an engine takes comparatively little of the effort. Most of it goes into design decisions, for example which steps can safely run twice, what undoing a shipping label or a payment hold involves in practice, how long a person has before a task escalates, and how to change a workflow definition while cases started under the old version are still running. We work through these questions step by step with the process owner and then test the answers by deliberately breaking things in a test environment.