A purchase request is approved, an order is placed, goods arrive, an invoice is entered, payment goes out. On a diagram the process looks like a single line. In reality requests bounce back, approvals get skipped and invoices arrive before the goods. Process mining reconstructs that real flow, not from meetings or guesses, but from the event records your systems already collect.
This guide covers the event log, discovery, variant and duration analysis, conformance checking, data preparation, a pilot, the privacy boundary and payback. Every figure is representative, not a measurement of a real company.
What Is Process Mining?
Process mining is an analysis method that discovers the real workflow from event data recorded by information systems, compares it with the designed process, and measures duration and bottlenecks. It does three jobs: discovery (how does the process really flow), conformance checking (does it follow the rules) and improvement (where are time and effort lost).
What separates it from manual work is data. The method in our process mapping guide is built on interviews and observation and draws the process as people describe it. Process mining shows what actually happened in the system. They complement each other: mapping clarifies the rule, mining measures how closely reality follows the map.
| Topic | Process mapping | Process mining |
|---|---|---|
| Source | Interviews, observation, workshops | Event records in systems |
| Coverage | A few sample cases | All cases |
| What it shows | The described and designed flow | The flow actually followed and the deviations |
| Duration data | Estimated | Measured from records |
We recommend reading: How to do business process mapping: an as-is and to-be guide
Why Is an Event Log Enough?
Each event row records a case, an activity and the time of that activity. Three fields are mandatory: a case ID (which request or order), an activity name (what happened) and a timestamp (when). Fields such as user or role and amount are optional, but they make conformance and handover analysis possible.
The sample below shows the first four activities of three purchasing cases (excerpt; representative).
| Case | Activity | Time | User |
|---|---|---|---|
| K-101 | Create request | 03.11 09:10 | U1 |
| K-101 | Approve | 03.11 15:40 | U2 |
| K-101 | Place order | 04.11 10:05 | U3 |
| K-101 | Receive goods | 09.11 11:30 | U4 |
| K-102 | Create request | 03.11 10:00 | U5 |
| K-102 | Approve | 04.11 09:15 | U2 |
| K-102 | Update request | 04.11 11:00 | U5 |
| K-102 | Approve | 05.11 16:30 | U2 |
| K-103 | Create request | 04.11 08:45 | U6 |
| K-103 | Approve | 04.11 08:50 | U6 |
| K-103 | Place order | 04.11 09:20 | U3 |
| K-103 | Receive goods | 07.11 10:10 | U4 |
Three things can be read from these 12 rows. K-101 followed the straight path. In K-102 the request was updated after approval and approval was obtained again, which is a loop. In K-103 the person who opened the request and the person who approved it are the same user (U6), and approval came five minutes later, a candidate segregation-of-duties violation. See our event-driven architecture and audit log guides for how events are produced and kept trustworthy.
How Does Process Discovery Work?
Discovery starts by counting consecutive activity pairs in the log. Each transition from an activity to the one that directly follows it becomes an edge; the result is called a directly-follows graph. For the three cases above the counts are:
For the three cases the counts are: Request to Approve 3, Approve to Order 2, Approve to Update request 1, Update request to Approve 1, Order to Goods receipt 2. The total is 3 + 2 + 1 + 1 + 2 = 9 transitions, which is 12 rows minus 3 cases. If the transition count is not the row count minus the case count, the data has duplicates or gaps. In real data the graph grows to hundreds of edges, which is why variants and durations come next.
What Does Variant Analysis Show?
A variant is a set of cases that follow the same sequence of activities. In the sample data 1,000 cases fall into 87 different variants.
| Variant | Path summary | Cases | Cumulative share | Median duration (days) |
|---|---|---|---|---|
| V1 | Ideal path: request, approval, order, goods receipt, invoice entry, invoice approval, payment | 412 | 41.2% | 8.0 |
| V2 | Request updated after approval, second approval | 168 | 58.0% | 12.5 |
| V3 | Invoice entered before goods receipt | 94 | 67.4% | 8.5 |
| V4 | Goods received in two lots | 63 | 73.7% | 11.0 |
| V5 | Invoice entered twice (correction) | 43 | 78.0% | 12.0 |
| Other 82 | Long tail | 220 | 100% | - |
Check the numbers: 412 + 168 + 94 + 63 + 43 = 780 cases, which is 78.0%; the remaining 220 cases are spread over 82 variants. The top five variants are only 5 ÷ 87 ≈ 5.7% of all variants but carry 78% of cases. Half of the long tail (41 variants) consists of a single case each. The ideal path has a share of only 41.2%; more than half of the process has run differently from the diagram.
Compare V2 with V1: the median duration rises from 8.0 to 12.5 days, a difference of 4.5 days and a 4.5 ÷ 8.0 = 56.3% extension. The price of the loop is read from here. V3 and V4 may be legitimate variants; they are discussed with the process owner before becoming a rule.
How Are Durations and Bottlenecks Found?
Duration analysis measures the waiting time between two activities. The mean, median and p90 of each transition are read together: the mean is pulled by extreme values, the median shows the typical case, and p90 shows the threshold of the slowest one in ten. The sample data follows (hours, representative).
| Transition | Mean | Median | p90 | Share of mean |
|---|---|---|---|---|
| Request to Approval | 30 | 12 | 72 | 10.3% |
| Approval to Order | 6 | 3 | 12 | 2.1% |
| Order to Goods receipt | 120 | 96 | 168 | 41.1% |
| Goods receipt to Invoice entry | 40 | 24 | 96 | 13.7% |
| Invoice entry to Invoice approval | 24 | 10 | 60 | 8.2% |
| Invoice approval to Payment | 72 | 48 | 168 | 24.7% |
| Total | 292 | - | - | 100% |
Means can be added: 30 + 6 + 120 + 40 + 24 + 72 = 292 hours, about 12.2 days. Medians and percentiles cannot be added; the end-to-end median is computed per case (228 hours, 9.5 days, in the example). Between request and approval the mean is 30 hours but the median is 12: the typical request is approved within half a day, while a 72-hour tail at p90 drags the mean up.
The largest share (41.1%) sits between order and goods receipt; that is supplier lead time and usually cannot be influenced directly. The waiting you can act on is concentrated in request approval (30 hours) and payment after invoice approval (72 hours): (30 + 72) ÷ 292 ≈ 34.9%. If the payment wait comes from payment terms it is deliberate; not every wait is waste. Look at who controls a delay, not only its size.
How Are Rework and Handovers Measured?
When the same activity appears a second time in a case, that is rework: approval is obtained twice, an invoice is entered twice. In the example V2 (168 cases) and V5 (43 cases) plus 22 cases in the long tail make 233 cases with rework; the rework rate is 233 ÷ 1,000 = 23.3%. If each rework costs 45 minutes of effort, that is 233 × 45 min = 174.75 hours; at an hourly cost of ₺300 it comes to ₺52,425. V4, created by partial delivery, is not counted because it is part of the business.
The handover count is how many times a case passes to a different person or team. In the example the ideal path has 4 and all cases average 5.2 handovers. Check: of 5,200 handovers in total, the ideal path accounts for 412 × 4 = 1,648; for the remaining 588 cases the average is (5,200 − 1,648) ÷ 588 ≈ 6.0.
How Is Conformance Checking Done?
Conformance checking compares the event log with the designed rules. The sample data has three rules:
| Rule | Violations (cases) | Note |
|---|---|---|
| No payment before invoice approval | 17 | Payment time earlier than approval |
| The requester cannot approve (segregation of duties) | 9 | Same user in two activities |
| Approval cannot be skipped | 12 | Direct move from request to order |
| Total violations | 38 | 3 cases break two rules at once |
There are 17 + 9 + 12 = 38 violations; because three cases break two rules together, the number of violating cases is 38 − 3 = 35. The conformance rate is (1,000 − 35) ÷ 1,000 = 96.5%. This rate shows what sample-based auditing cannot: every case that breaks a rule is listed. Still, a violation is a signal, not proof; it may be a genuine exception, so each one is verified with its owner.
Why Is Data Preparation the Hardest Part?
The quality of the analysis depends on data preparation, and most of the effort goes there. Four problems are common:
- Joining case IDs: Request, order and invoice numbers live in separate tables; unless a mapping ties them to a single case, the process looks fragmented.
- Timestamp resolution: In records that keep only the date, the order of same-day activities is unknown. In the example, goods receipt and invoice entry fall on the same day in 120 cases (12%).
- Time zone: If one system records local time and another records UTC, events shift by three hours and the order comes out wrong.
- Missing records: Cases without a starting activity distort durations. In the example 43 of 1,043 cases have no request record (4.1%); they were migrated from an old system, so they are removed and 1,000 clean cases remain.
At the end of preparation these quality checks are run: does each case have a start and an end activity, is the time order broken, has the same event been written twice. Producing events from source tables may require a data warehouse; our data warehouse guide describes that layer.
Which Processes Suit Process Mining?
Three conditions are sought: high volume, tracking in a system and a clear owner. Order to cash, purchase to pay and support tickets suit it; new product design, which has low volume and mostly happens outside systems, does not. If volume is low variants are not meaningful, if steps happen outside the system no record exists, and without an owner findings do not turn into action.
We cover the order and collection chain separately in our order-to-cash guide.
How Is a Pilot Designed?
A pilot is kept to one process, three months and three questions. For example: "What share follows the ideal path?", "Which transition has the most waiting?", "Are there cases that break the rules?"
- Weeks 1-2: Choose the process and its owner, extract the event data.
- Weeks 3-6: Prepare the data and run quality checks.
- Weeks 7-10: Run discovery, variant, duration and conformance analysis.
- Weeks 11-12: Validate findings with the owner and produce an action list.
The pilot succeeds not by producing a report but by turning into at least one measurable improvement action.
How Do Findings Turn into Action?
Each finding is tied to an owner, an action and a measure. A simple score can be used to find automation candidates: monthly cases × activity duration (hours) × share of the most common path. High-volume, low-variation steps stand out.
Example calculation (1,000 cases a month): for invoice entry 1,000 × 6 ÷ 60 = 100 hours, × 0.92 = 92.0; for goods receipt 1,000 × 8 ÷ 60 = 133.3 hours, × 0.55 = 73.3; for approval 1,000 × 4 ÷ 60 = 66.7 hours, × 0.70 = 46.7. Invoice entry scores highest because it almost always follows the same path. For automation options see our business process automation guide, and for moving approval chains into software our workflow and approval software guide.
What Is the Privacy and Employee Monitoring Boundary?
An event log contains a user field, and that makes person-level analysis possible. Keep analysis at process level: use roles instead of users (the "requester" instead of U1), do not show small groups (for example, fewer than five cases are not reported; the threshold is representative) and do not produce person-level performance rankings. For the limits on processing personal data and employee monitoring, consult your legal counsel about data protection and employment law; this article is not legal advice.
Which Measures Track Process Mining?
Four measures are enough. The sample data and targets are representative:
Four measures are enough (representative targets): ideal path share 412 ÷ 1,000 = 41.2%, target 60%; end-to-end median 9.5 days, target 7; rework rate 23.3%, target 10%; conformance violations 35 cases, target 5. Give each an owner and review rhythm using indicator design; for dashboards see our business intelligence guide.
How Is Payback Calculated?
Example: the pilot and data pipeline investment is ₺180,000. The monthly benefit comes from three items. If the rework rate falls from 23.3% to 10%, 133 cases disappear; 133 × 45 min = 99.75 hours × ₺300 = ₺29,925. If conformance violations fall from 35 to 5, the review effort for 30 cases is saved: 30 × 1 hour × ₺300 = ₺9,000. The gross benefit is ₺38,925. If running and maintaining the data pipeline costs ₺6,000 a month, the net benefit is 29,925 + 9,000 − 6,000 = ₺32,925.
Payback: 180,000 ÷ 32,925 ≈ 5.5 months. For sensitivity, if the benefit is halved the net becomes 38,925 ÷ 2 − 6,000 = ₺13,462.5 and payback stretches to about 13.4 months. The real benefit is not settled until measured at the end of the pilot.
Making Process Data Usable with İnovabil
At İnovabil our focus is building software from scratch, specific to each company: custom software, ERP, CRM, e-commerce, web, mobile and integration. We do not offer a separate process mining product or service; designing systems that record events correctly and leave an audit trail is something we discuss at the requirements stage.
We built CRM, purchasing and mobile for Avcılar İnşaat; a purchasing system for İZBAN; logistics and shipment planning with wholesale order management for Karyak; and warehouse management plus a complaint and support management system for Sleepy. Send us a short summary and we will review together which events your system records.
We recommend reading: Our business intelligence and reporting service
Frequently Asked Questions
What is process mining and what is it for?
It is a method that automatically extracts the real workflow from event data recorded by systems. It shows which paths a process actually follows, where it waits and where rules are broken.
What data does process mining need?
At least three fields: a case ID, an activity name and a timestamp. A user or role field makes conformance and handover analysis possible. If the data is in separate tables, it must first be joined by case ID.
What is the difference between process mapping and process mining?
Mapping draws the process as people describe it, through interviews and observation; mining shows what actually happened from records. One is for design and the other for measurement, and they can be used together.
Which process should I start with?
One that is high-volume, tracked in a system and has a clear owner, such as purchase to pay or order to cash. One process, three questions and a three-month pilot are enough.
Does process mining count as employee monitoring?
It can, if person-level rankings are produced. Keep analysis at role and process level, do not report small groups, and consult legal counsel on data protection and employment law.