Most organizations have two versions of each process. The first lives in the procedure document as a tidy sequence of boxes drawn for an audit or a system implementation, and the second is what actually happens on an ordinary Tuesday, with the spreadsheet somebody keeps on the side, the email to the colleague who knows how to get things released and the queue that has no owner.
Process discovery means establishing from evidence how a process really runs before anyone decides what to change. That sounds obvious, yet in practice it is often skipped because the documented process is assumed to be accurate, or done so thoroughly that the map is out of date by the time it is finished.
We think a first discovery should be small and quick, covering one process over a few weeks with evidence from three independent sources. Its purpose is to show where the time goes and why, with enough confidence to choose the next step, rather than to build a complete model. The case for doing this before automating anything is made in fix the process before you automate it, and this article covers the method.
In brief
- A first process discovery should cover one process with a clear start and end event and be finished within weeks, because a map that takes months describes a process that has already changed.
- Interviews, direct observation and system event logs each miss something that the others catch, so a reliable picture needs all three.
- Queues and handoffs deserve more attention than task speed in most administrative processes, because waiting between steps, more than the work itself, dominates the elapsed time.
- An event log becomes useful with only three fields per record, which are a case identifier, an activity name and a timestamp.
- Discovery should end in a short, ranked list of the causes of delay and rework with a proposed remedy for each, and many remedies will not involve automation.
Step 1: choose one process and fence it
Choose a process that matters, that runs often enough to generate data and that has a sponsor who can change it. Then define its boundary with two events, since a department name makes a poor boundary.
"Accounts payable" is the name of a department, whereas "from receipt of a supplier invoice to payment released to the bank" describes a process. The start and end events have to be things you can observe and timestamp. Everything between them is in scope, including work done in other departments, and everything outside them is out of scope, however interesting.
Before you begin, write down three further things.
- The unit of work, or case, such as one invoice, one claim or one customer order, since every measurement is taken per case.
- The outcome the sponsor cares about, whether that is elapsed time, cost per case, error rate or a compliance requirement.
- The volume and the mix, meaning roughly how many cases arrive each month and what the main categories are (with or without a purchase order, domestic or foreign).
Avoid adding a second process, since two processes take more than twice as long once the temptation to model how they interact takes hold.
Step 2: ask the people who do the work, then watch them
Interviews come first because they tell you where to look. Speak to the people who handle cases as well as to their managers, since managers tend to describe the process as designed and handlers as it runs.
Useful questions are concrete, for example:
- "Take me through the last one you handled, from the moment it reached you."
- "What do you need that you often do not have when the case arrives?"
- "Which cases do you dread, and what is different about them?"
- "Where do you keep notes or lists that are not in the system?"
- "Who do you have to chase, and how do you go about it?"
Ask about the most recent real case, because a typical case tends to bring back the procedure document. Collect the artifacts people mention, such as the side spreadsheet, the email template and the sticky-note checklist, since each marks a place where the official system does not meet the needs of the work.
The limits of interviews are well known. People tend to describe the common path and forget the exceptions, and they underestimate how long things wait, so treat what you hear as hypotheses to test.
Then watch the work
Spend half a day each with two or three handlers and follow real cases. You are looking for what people never think to mention because it has become too familiar, usually the following.
- Re-keying, where the same data is typed into a second system.
- Lookups, where the handler leaves the case to find something in another application, a shared drive or a mailbox.
- Checks that never fail, such as an approval that is always granted or a field that is always verified and always correct.
- Batching, where work is held until a particular day or until a pile has built up.
- Interruptions, where a case is put down because something is missing and later restarted from the beginning.
For each step, record what triggers it, which system is used, what information is needed and what happens when it is missing. Timing a handful of steps with a watch is enough to tell a two-minute task from a twenty-minute one. Be open with staff about what you are doing and why, because observation that feels like surveillance tends to produce a performance of the official process.
Step 3: read what the systems recorded
Interviews and observation give you a small sample in depth, whereas system data covers every case in less depth. An event log is a table in which each row records that a named activity happened to a particular case at a particular time. Those three fields (case identifier, activity, timestamp) are the minimum that process mining techniques require, and they are enough for a first analysis in ordinary SQL without specialist software. A fourth field showing who or which team performed the activity is also worth having.
Most workflow, ERP and ticketing systems keep this information in status-history or audit tables, and getting it into shape is a small data engineering task. Once you have the log, two queries answer most first questions.
-- Where does the time go? Waiting time before each activity.
WITH steps AS (
SELECT
case_id,
activity,
event_time,
LAG(event_time) OVER (PARTITION BY case_id ORDER BY event_time) AS prev_time
FROM invoice_events
)
SELECT
activity,
COUNT(*) AS occurrences,
PERCENTILE_CONT(0.5) WITHIN GROUP
(ORDER BY event_time - prev_time) AS median_wait,
PERCENTILE_CONT(0.9) WITHIN GROUP
(ORDER BY event_time - prev_time) AS p90_wait
FROM steps
WHERE prev_time IS NOT NULL
GROUP BY activity
ORDER BY median_wait DESC;
-- How many different paths are there? Variants by frequency.
SELECT path, COUNT(*) AS cases
FROM (
SELECT case_id,
STRING_AGG(activity, ' > ' ORDER BY event_time) AS path
FROM invoice_events
GROUP BY case_id
) v
GROUP BY path
ORDER BY cases DESC;
The first query shows which steps cases wait longest to reach, and the second shows the variants, meaning the distinct sequences of activities that cases follow. A documented process has a single path, whereas a real one usually has a few common variants and a long tail of rare ones, and that tail is where rework and exceptions sit. An activity that appears twice in one path marks a loop, meaning something was sent back.
The log needs careful reading, because it records only what happens inside the system. The chasing email and the side spreadsheet do not appear in it, and its timestamps record when a status was changed, which may be hours after the work was done. A missing event also does not prove that a step was skipped. That is why the log is the third source, used alongside the other two.
Step 4: separate touch time from waiting time
Touch time is the time someone spends actively working on a case, and elapsed time runs from start to end. The difference between them is waiting, whether in a queue, for an approval, for missing information or for the weekly batch run.
Put your observed timings and the log's elapsed times into one table, with a row per step.
| Step | Touch time (observed) | Median wait before step (log) | Share of cases repeating the step | Main cause of delay |
|---|---|---|---|---|
| Register invoice | a few minutes | under an hour | none | none |
| Match to purchase order | several minutes | about a day | some | missing or wrong order number |
| Approve | under a minute | several days | few | approver not prompted, no delegate |
| Release payment | a few minutes | up to a week | none | weekly payment run |
Fill it in with your own measurements. The pattern above is common in administrative work, in which the hands-on effort is small compared with the calendar time. When that is so, making a step faster achieves little, while removing a queue, a handoff or a cause of rework achieves a great deal.
Supplier invoices at a manufacturer
Consider a mid-size manufacturer whose finance director wants to automate invoice entry because suppliers complain of late payment, and the proposal is to extract invoice data automatically and remove manual keying.
A three-week discovery is carried out first. The interviews suggest that keying is tedious but quick, and observation confirms this, showing a clerk entering an invoice in a few minutes and then spending longer searching for the purchase order number, which is often missing from the invoice. The event log, built from the ERP's document status history, shows three things. Invoices wait longest at approval, while invoices without a purchase order reference follow a separate and much slower variant with several loops between the clerk and the requester. Payment is also released in a weekly run, so an invoice approved on the day after a run waits most of a week regardless.
The ranked findings differ considerably from the original proposal.
- Require suppliers to quote a purchase order number and reject invoices without one at receipt. This needs a policy change and a letter to suppliers.
- Send approvers a daily prompt, add a delegate for absences and approve automatically any invoice that matches the order and the goods receipt within tolerance, all of which is configuration in the existing system.
- Move the payment run to twice a week, which only needs a decision.
- Automate capture after that, using intelligent document processing, once most invoices arrive in a form that can be matched without a person.
The work is designed to change the elapsed time from receipt to payment and the number of invoices that loop. Both can be read from the same event log afterwards, which keeps the comparison between before and after fair.
Step 5: turn the map into a ranked list
The process map is a means to an end, and the deliverable is a short list of findings, each with its evidence, a proposed remedy and a rough size. Sort the remedies by type in the following order:
- Remove the steps, checks and approvals that add nothing.
- Fix at source the errors and missing data that cause rework downstream.
- Change a rule or schedule: thresholds, batch frequency, who may approve.
- Reconfigure what you have: prompts, delegation, validation in existing systems.
- Automate what remains when it is stable and rule-based. The choice of technique is discussed in RPA, APIs or agents. For a process that spans days and several systems, see long-running workflows.
The order matters because the cheaper remedies change what is left to automate. That ordering sits at the center of process discovery and optimization as a discipline, and it keeps business process automation aimed at work that merits it.
A first-discovery checklist
- One process with a start event and an end event that you can timestamp.
- A named sponsor who can change policy as well as tooling.
- Interviews with handlers about their last real case, and the side artifacts they mention.
- At least half a day of observation with each of two or more handlers.
- An event log holding case, activity and timestamp for several months of cases.
- Waiting time per step and a count of variants.
- A table setting touch time against waiting time.
- At most ten findings in ranked order with evidence and a remedy type for each.
- Two baseline measures recorded now, so that the effect of any change can later be read from the same data.
A discovery that ends by recommending that everything be automated deserves suspicion, because a sound one nearly always finds something to stop doing first.



