Home / Insights / Business Operations and Integration
Business Operations and Integration
Process Mining Before Automation: Finding the Real Workflow in Your System Logs
Most automation projects start from a process map drawn in a workshop. Your systems already record how work actually flows. Process mining turns those event logs into evidence, so you automate the process you have rather than the one people remember.
TopicsBusiness Operations and IntegrationAI Agents and Automation
Key takeaways
- Process mining reconstructs real workflows from three fields most systems already store: a case identifier, an activity name and a timestamp.
- Use it before automation to find the variants, rework loops and waiting time that workshops miss, and to decide which steps are worth automating at all.
- Data extraction and cleaning take most of the effort. Start from a specific business question, as the IEEE Task Force’s Process Mining Manifesto recommends.
- You do not always need an enterprise platform: open-source tools and a well-built extract are enough for a first diagnostic on one process.
- Treat event data as personal data where it identifies employees or customers, and agree upfront that findings will be used to fix processes, not to rank individuals.
On this page
- What process mining is, and why it belongs before automation
- What data you need, and where to find it
- The case problem: when one order is really many objects
- Tool options: platform, open source or a custom extract
- A practical method: from question to automation backlog
- Risks, privacy and the limits of the logs
- Checklist: are you ready to mine before you automate?
- Frequently asked questions
- Sources and methodology
Ask five people how a purchase order gets approved and you will hear five versions. Each is honest, and each is incomplete. When that composite story becomes the specification for a workflow engine or a bot, the automation inherits its blind spots: the exceptions nobody mentioned, the rework loop that happens on one invoice in five, the approval that waits three days for one manager’s inbox.
Process mining offers a different starting point. ERP, CRM, ticketing and workflow systems record when things happen to each order, ticket or claim. Analysed properly, those records show the real sequence of steps, how often each path occurs and where time is lost. This article is for operations leads, CTOs and transformation managers planning business process automation. It covers what process mining can and cannot tell you, the data it needs, tool options, a practical method, and the risks to manage before you put logs from your systems under a microscope.
What process mining is, and why it belongs before automation
Process mining is a family of techniques that use event data recorded by information systems to analyse business processes. The Process Mining Manifesto, written under the IEEE Task Force on Process Mining, describes three types:
- Discovery: building a process model from an event log, with no prior model.
- Conformance checking: comparing an existing model, such as your documented procedure, with what the log shows actually happened.
- Enhancement: extending a model with information from the log, for example bottlenecks, service levels and throughput times.
Why it matters for automation decisions
Automation multiplies whatever process it encodes. If the process has unnecessary loops, automation runs them faster. If it has many variants, a rigid workflow breaks on the ones it did not anticipate. Mining before automating answers questions that directly shape scope:
- How many distinct paths do cases actually follow, and which few cover most of the volume?
- Where does elapsed time come from: work, or waiting between steps?
- Which rework loops exist, and what triggers them?
- Do cases follow the documented procedure, and where do they deviate?
- Which steps are already handled in a system, and which happen outside it, in email or spreadsheets?
The answers often shrink the automation scope. A common finding is that the biggest delay is not the manual step people want to automate but a hand-off where cases wait for someone to notice them. Fixing routing or notifications can deliver more than a bot.
Action: before commissioning any automation, write down the three questions about the process that you most need answered with evidence.
What data you need, and where to find it
The minimum is simple. Each event record needs:
- Case identifier: the thing moving through the process, such as an order number, ticket ID or claim reference.
- Activity: what happened, such as created, approved, rejected, shipped.
- Timestamp: when it happened.
Useful extras include the resource (user or team), cost or value, and case attributes such as region, product or customer segment, which let you compare variants across groups.
Where event data hides
| Source | What it usually holds | Typical difficulty |
|---|---|---|
| ERP (purchasing, order-to-cash) | Document status changes, change logs, approvals | Events spread across many tables; one order links to several documents |
| CRM | Opportunity stage changes, activities, tasks | Stage history may be overwritten unless field history is enabled |
| Ticketing and service desk | Status transitions, assignments, comments | Usually the cleanest source; status names change over time |
| Workflow or BPM engines | Task start and completion events | Good data, but only for the part of the process in the engine |
| Email and spreadsheets | Approvals and hand-offs outside systems | Often invisible; needs sampling or interviews to fill gaps |
| Custom applications | Audit tables, application logs | Technical log messages need mapping to business activities |
Standard formats
For exchange between systems and tools, the IEEE published XES (IEEE 1849), an XML-based standard for event logs and streams; its current revision is IEEE 1849-2023. Many teams start with a simple CSV with the three core columns, which nearly every process mining tool can import. If you are building new systems, design audit tables so that this extract is easy: consistent activity names, reliable timestamps with time zones, and stable case identifiers.
Action: for your target process, list each system involved and check whether it records status changes with timestamps, or only the current status.
The case problem: when one order is really many objects
Classic process mining assumes each event belongs to exactly one case. Real processes are messier. One sales order may produce several deliveries and several invoices; one invoice may cover several orders. Forcing everything into a single case identifier distorts the picture: events get duplicated across cases or dropped, and frequencies and durations become misleading.
Research on object-centric process mining addresses this. Berti and van der Aalst’s OC-PM paper notes that traditional approaches force events into mutually exclusive groups through a case notion, and proposes analysing event data from systems such as SAP without that forced grouping, with models showing how different object types interact. The OCEL standard defines an exchange format for such object-centric event logs, built around events, objects, object types and their relationships.
How to decide your case notion
| Situation | Practical approach |
|---|---|
| One-to-one flow (a ticket, a claim, an application) | Classic single-case mining is fine |
| One-to-many but you care about one object (for example, invoice approval) | Pick that object as the case; record related objects as attributes |
| Many-to-many flows across documents (order-to-cash, procure-to-pay) | Consider object-centric logs, or run separate analyses per object type and reconcile |
Action: draw the objects in your process (orders, lines, deliveries, invoices) and their cardinalities before you extract anything. It takes an hour and prevents weeks of confusing results.
Tool options: platform, open source or a custom extract
The market ranges from enterprise platforms with prebuilt connectors to open-source libraries. The right choice depends on how many processes you will analyse, how often, and who will do the analysis.
| Option | Strengths | Limitations | Best fit |
|---|---|---|---|
| Enterprise process mining platform | Prebuilt connectors for major ERPs; dashboards; continuous monitoring | Licence cost; connector setup still needs data work; risk of shelfware after the first project | Large organisations with several processes and a central excellence team |
| Process mining features in an existing suite | Familiar environment; easier procurement | Depth varies; may only cover that vendor’s systems | Organisations already standardised on one suite |
| Open-source tools and libraries | No licence fee; flexible; good for diagnostics | Needs analyst or developer skills; less polished sharing | A first diagnostic on one or two processes |
| Custom extract plus BI dashboards | Fits your data exactly; reuses existing reporting stack | No automatic discovery of process models; you build what you need | Ongoing monitoring of a well-understood process after automation |
A pragmatic pattern is to run the first diagnostic with open-source tools on a careful extract, decide what to automate, and only then consider whether continuous monitoring justifies a platform licence. The extract logic you build is reusable either way.
Action: do not sign a multi-year platform contract until one diagnostic has shown which processes are worth continuous monitoring.
A practical method: from question to automation backlog
The manifesto’s guiding principles include that log extraction should be driven by questions and that event data should be treated as first-class citizens. In practice, a diagnostic for one process typically follows these steps.
- Frame the questions. For example: why does supplier invoice approval take longer for some business units, and which steps could be automated safely?
- Map objects and systems. Identify the case notion, source tables and where steps happen outside systems.
- Extract a bounded period. Choose a period long enough to include month-end and seasonal effects but short enough to avoid major process changes.
- Clean and map activities. Merge duplicate status names, align time zones, remove test records, and map technical events to business activities. Expect this to be the largest effort.
- Validate with the people who do the work. Walk through a handful of real cases end to end. If the log and the people disagree, find out why before trusting either.
- Discover and analyse. Identify the main variants, rework loops, waiting times and deviations from procedure.
- Translate findings into a backlog. For each finding, decide: eliminate the step, fix the rule or routing, automate with rules, add AI assistance for unstructured inputs, or leave alone.
- Define baseline metrics. Record the current throughput time, rework rate and variant mix so you can measure the automation’s effect later.
A worked example (illustrative)
For example, a 200-person distribution company might mine six months of invoice approval data from its ERP. The happy path, received to matched to approved to paid, could turn out to cover a minority of invoices. The rest might loop through price-variance queries with purchasing, wait for approvers who are out of office, or be re-keyed after scanning errors. The resulting backlog would look different from the original plan to put a bot on data entry: tolerance rules for small variances, delegation for absent approvers, and better capture at intake, with automation of the remaining manual matching only after those fixes.
That sequence mirrors how we approach automation generally: rules first, AI where it adds value. Scoping that first automated step narrowly, as in our article on scoping the smallest useful AI feature, keeps risk and cost proportionate.
Action: commit to a diagnostic with a fixed scope and a fixed end date, with the backlog and baseline metrics as its deliverables.
Risks, privacy and the limits of the logs
Process mining is powerful, but logs are not the whole truth, and analysing them carries real organisational risk.
Limits to keep in mind
- Invisible work: steps done in email, chat or on paper do not appear. A smooth-looking log can hide a lot of manual effort.
- Timestamp quality: batch jobs that stamp many events at once, or users who update statuses at the end of the day, distort durations.
- Concept drift: the manifesto lists changing processes during the analysis period as a key challenge. A reorganisation or system upgrade halfway through your period can create false variants.
- Correlation, not cause: the log shows where time is lost, not why. Interviews and observation still matter.
Privacy and trust
Event logs often contain employee identifiers and customer data. The manifesto itself notes that privacy and security must be addressed when handling event data. Practical safeguards:
- Pseudonymise user and customer identifiers in the extract unless analysis genuinely needs them.
- Check your obligations under data protection law and involve your data protection lead before extraction.
- Agree with management and staff representatives, in writing, that the purpose is process improvement, not individual performance ranking.
- Restrict access to the raw extract and delete it when the diagnostic ends.
Ignoring the trust dimension is the fastest way to lose the co-operation you need in the validation step.
Action: complete a short data protection assessment and a purpose statement before the first extract leaves the source system.
Checklist: are you ready to mine before you automate?
- We have three specific questions about the process that the analysis must answer.
- We know the case notion and have mapped the objects and their relationships.
- Each system in scope records status changes with timestamps, not only current status.
- We know which steps happen outside systems and how we will account for them.
- We have chosen a bounded period that avoids major process or system changes.
- Identifiers are pseudonymised and a purpose statement has been agreed.
- People who do the work are available to validate sample cases.
- The diagnostic has a fixed scope, end date and named deliverables: a findings report, an automation backlog and baseline metrics.
- We have agreed how findings will be prioritised against effort and risk.
If you are choosing a partner to run the diagnostic and build what follows, a short, paid first phase with clear deliverables is a sensible way to test fit; our guide to paid trial sprints explains how to structure one.
Frequently asked questions
How long does a first process mining diagnostic take?
It depends mostly on data access and cleaning. For one process with accessible data in one or two systems, a diagnostic is usually measured in weeks rather than months. Data extraction and activity mapping tend to take longer than the analysis itself.
Do we need an expensive process mining platform?
Not for a first diagnostic. Open-source tools and a well-built extract are often enough to find variants, rework and waiting time. A platform makes more sense when you want continuous monitoring across several processes.
What if our key steps happen in email and spreadsheets?
Process mining will show gaps where those steps should be. Fill them with interviews and sampling, and treat moving those steps into a system as a likely early improvement, because it also makes future measurement possible.
Will staff see this as surveillance?
They may, unless you are clear about purpose. Pseudonymise identifiers, agree in writing that the aim is process improvement, and involve the people who do the work in validating the findings.
How does process mining relate to task mining?
Process mining uses system event logs to show how cases flow between steps. Task mining records user interactions on desktops to show how individual tasks are performed. Process mining is usually the better first step because it shows where in the process time and rework accumulate.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- IEEE Task Force on Process Mining: Process Mining Manifesto (BPM 2011 Workshops, 2012) — accessed 9 November 2026. Three types of process mining, guiding principles on question-driven extraction and event data quality, and challenges such as data cleaning and concept drift.
- XES Standard: IEEE 1849 eXtensible Event Stream — accessed 9 November 2026. IEEE 1849-2023 as the XML-based standard for exchanging event logs and streams.
- Berti and van der Aalst: OC-PM, Analyzing Object-Centric Event Logs and Process Models (arXiv, 2022) — accessed 9 November 2026. Limits of single case notions and the object-centric approach for ERP data.
- OCEL Standard: Object-Centric Event Log format — accessed 9 November 2026. Exchange format for object-centric event logs based on events, objects, types and relationships.
Related reading
Continue your research
Which of your processes should you mine before you automate?
Tell us about the workflow you want to automate and the systems it runs through. We will suggest a scoped diagnostic and what it should deliver.
