Skip to content

Process Mining Examples: Discover Actual Workflows From Event Logs

August 7, 2026 ·
Illustrated event log connected to a branching process map

A process map often describes how work is supposed to happen. Event records can reveal whether the observed routes agree with that description. Process mining uses recorded events to examine actual process behavior, investigate variation and compare observed execution with a reference model. Its strength depends on the meaning and quality of the underlying records. A system can record that an approval field was updated without proving when a person made the approval decision. The examples below use fictional event records, explicitly defined cases and hand-calculated results to demonstrate what process mining can establish and what requires additional investigation.

Quick Answer

Extract trustworthy events with a case identifier, activity and timestamp. Group them into traces, discover common and exceptional routes, compare observed behavior with an appropriate reference model, and investigate delays before changing the process.

Table Of Contents

Define The Case Before Extracting Data

The case identifier determines which events belong to one instance of the process. In an order fulfillment study, the case might be a customer order, an individual item, a shipment or an invoice. These choices describe different questions. If one order produces two shipments, a shipment-level analysis may reveal fulfillment differences hidden by an order-level average. However, combining order-level and shipment-level timestamps without a defined relationship may create duplicated or misleading sequences.

A conventional event log contains a case identifier, an activity label and a timestamp. Additional attributes can describe resources, event lifecycle, order type, cost or other relevant conditions. Wil van der Aalst’s overview of process mining discusses the role of these basic event attributes and the different types of analysis they support. The analyst should record the source of each event and the business meaning of its timestamp before drawing a process diagram.

Define the process boundary in operational terms. In an expense reimbursement study, for example, submission might mean the employee’s initial attempt, receipt of a complete claim, or acceptance into the review queue. Reimbursement might mean payment authorization, transmission to a bank, or the employee actually receiving funds. If the organization measures receipt-to-authorization, it should not describe the result as the employee’s total waiting time. The swimlane diagram examples offer a complementary way to identify actors, handoffs and boundaries before extracting records.

Example One: Construct A Small Event Log

Suppose a fictional organization wants to examine expense claims submitted through a single system. Its process requires a review before approval and payment. Some claims are returned for missing information, after which the employee resubmits them. For this exercise, all timestamps refer to the same date and timezone, and every claim has a unique identifier. The times shown are elapsed minutes from 9:00 a.m., not activity durations.

CaseActivityElapsed Minute
C101Submit0
C101Review10
C101Approve15
C101Pay60
C102Submit5
C102Review20
C102Return25
C102Resubmit75
C102Review85
C102Approve90
C102Pay120
C103Submit12
C103Approve30
C103Pay55
C104Submit30
C104Review50
C104Approve65
C104Pay120
C105Submit40
C105Review50

The log represents five cases, but only four have an observed payment. C105 is open at the observation cutoff. It would be incorrect to count C105 as having a payment duration of ten minutes merely because its last recorded event occurred ten minutes after submission. The missing completion is an important distinction between an unfinished case and a completed case with a short duration.

In a real extraction, sort events within each case using a documented ordering rule. Two events with the same timestamp may require an additional sequence field or another trustworthy source to determine their order. Do not silently assume that alphabetical activity order reflects actual execution. Preserve uncertainty if ordering cannot be established, especially when a compliance conclusion depends on the sequence.

Discover Variants From The Completed Cases

A trace represents the ordered activities observed for a single case. A process variant groups cases that share the same activity sequence, under a stated grouping rule. The four completed claims produce three distinct variants. C101 and C104 follow Submit, Review, Approve, Pay. C102 includes Return, Resubmit and a second Review. C103 includes Submit, Approve and Pay without a recorded Review.

Observed VariantCompleted CasesShare Of Completed Cases
Submit, Review, Approve, Pay250%
Submit, Review, Return, Resubmit, Review, Approve, Pay125%
Submit, Approve, Pay125%

The denominator is four completed cases, not five submitted cases. The open claim should remain visible in a separate report. If the analysis asks how many submitted cases have reached review or payment by the observation cutoff, the denominator changes because that is a different question.

The variant with the highest frequency is not necessarily the only approved route, nor is a rare route necessarily a failure. An exceptional case may legitimately require additional review or a documented authorization path. Process discovery describes patterns present in the recorded data; it does not by itself establish which patterns are desirable. The organization’s requirements and the decision table examples can help identify conditions that justify alternative routes.

Calculate Elapsed Time Without Confusing It With Work Time

The completion interval for C101 is 60 minus zero, or 60 minutes. C102 takes 120 minus five, or 115 minutes. C103 takes 55 minus twelve, or 43 minutes. C104 takes 120 minus thirty, or 90 minutes. The mean of these four observed completion intervals is 77 minutes. The sorted intervals are 43, 60, 90 and 115; the median is the mean of 60 and 90, or 75 minutes.

Completed CaseSubmit To PayObserved Return Loop
C10160 minNone
C102115 minOne
C10343 minNone
C10490 minNone

The gap between Return and Resubmit for C102 is fifty minutes. That is an observed elapsed interval between two events. It might include the employee’s waiting time, preparation time, unrelated work or the delay in recording an event. Unless the system contains reliable start and finish records for specific activities, the analyst cannot identify that entire interval as hands-on work or pure waiting.

This distinction matters because the remedy depends on the mechanism. If the claim was returned for information the initial form could have requested, a redesigned intake might prevent the return. If the information is controlled by another department, clearer responsibilities or earlier availability might help instead. If the system merely records a delayed update, the apparent waiting time might be a logging problem. The process cycle efficiency examples explain the additional evidence needed to distinguish value-adding activity from total elapsed time.

Example Two: Check A Required Review Rule

Suppose the approved policy states that every payment must be preceded by an approval, and every approval must be preceded by a recorded review of the current claim information. A returned claim must be reviewed again after resubmission. For this limited exercise, check the completed traces against these two requirements. C101, C102 and C104 meet the stated recorded sequence conditions. C103 has no recorded review before approval.

The result is three conforming completed traces out of four, or 75 percent, under this simple rule and observation boundary. That number is not a universal process mining fitness score. A formal conformance method may use token-based replay, alignment costs, or another explicitly specified measure that treats model and log deviations differently. The hand-calculated result here is the share of completed cases satisfying two stated sequence checks.

Do not immediately conclude that C103 was paid without review. A reviewer may have used an authorized system whose events were not included, or the review timestamp could be missing because of a failed export. Conversely, the event record could accurately reveal an unauthorized route. Preserve the observation, inspect the actual claim history through appropriate authorized channels, and distinguish a verified policy breach from missing evidence. The research on conformance checking explains the comparison between observed event behavior and process models. The analyst still needs domain knowledge to interpret discrepancies.

Example Three: Investigate An Apparent Rework Bottleneck

Imagine a larger fictional extraction containing 200 completed claims. One hundred and forty follow the standard sequence, and sixty contain at least one return and resubmission. Of the returned group, forty claims are standard office expenses and twenty are travel expenses. Of the nonreturned group, 120 are office expenses and twenty are travel expenses. The overall return-loop share is 30 percent.

Within office expenses, forty out of 160 have a return loop, giving 25 percent. Within travel expenses, twenty out of forty have a return loop, giving 50 percent. Travel claims are a smaller group but have twice the observed return-loop proportion in this example. A sensible investigation might examine whether travel documentation requirements are harder to understand or whether another system supplies required evidence later. These are hypotheses, not conclusions supported by the counts alone.

The team should also examine how repeat returns are counted. If six returned cases each contain three return events, those eighteen events still represent six cases with a return loop. Counting events answers a workload question; counting distinct cases answers a customer-experience question. Both are useful, but they should not be presented as the same measure. The data stratification examples and failure demand examples provide complementary methods for investigating differences and unnecessary repeated work.

Examine Event Data Quality Before Trusting A Diagram

The review of event log preprocessing describes the importance of preparing event records before process mining analysis. Data-quality problems can create apparently unusual routes that never occurred. An integration may retry sending an event, producing duplicate activity records. A system migration may change an activity label even though operational behavior is unchanged. Timestamp conversions can move a payment event before the review event. Bulk updates may assign the same recorded time to many events performed at different moments.

Create a data-quality register listing missing case identifiers, duplicate events, invalid times, unexpected activity codes and known changes in data capture. Retain the original extract securely and document every transformation. Removing a duplicate requires evidence that two records describe the same event; repeated reviews may be legitimate and should not be deleted merely because their activity names match.

Consider incomplete traces as well. A claim submitted before the extraction window may appear to begin with Review, and a claim still awaiting payment at the end may look like an abandoned process. Define how cases crossing the boundary are handled. Restricting a duration report to completed cases can bias comparisons if long-running cases are more likely to remain open. Report open counts and ages alongside completed durations, and compare cohorts of equivalent maturity where feasible.

Convert Findings Into A Controlled Improvement

Select a specific pattern whose consequences matter. For the expense example, the return loop might deserve attention because it consumes employee time, delays reimbursement and generates additional review work. Inspect representative returned claims with appropriate privacy protections, classify the reasons for return and compare them with nonreturned claims. A structured root cause analysis can help distinguish incomplete form guidance, ambiguous requirements, incorrect routing and external documentation dependencies.

Before changing the process, define measurable acceptance conditions. A revised submission form should improve completeness without preventing legitimate exceptional claims. A trial might track the share of cases returned, time to accepted submission, completion intervals, open-case age, employee effort and accuracy of approval. Monitor unintended effects, such as an increase in incorrectly accepted claims or greater workload for employees preparing submissions. If a decline in return loops coincides with a change in how the system records returns, the apparent improvement must be investigated rather than reported automatically.

After implementation, extract a comparable cohort and repeat the trace, conformance and duration analyses using consistent definitions. If the new workflow deliberately changes the accepted model, version the model and explain the change. Comparing new cases with an obsolete process model may show a high deviation rate even when the redesigned process is functioning correctly.

The small expense log can also be summarized as a directly-follows graph. Among the four completed cases, Submit is immediately followed by Review three times and Approve once. Review is followed by Approve three times and Return once. Return is followed by Resubmit once, Resubmit by Review once, and Approve by Pay four times. These are counts of adjacent recorded events, not necessarily counts of distinct cases. In the returned trace, Review occurs twice; an analyst counting the number of claims that contain any review would count that trace only once. A graph based on adjacent events can therefore highlight recurring transitions without itself specifying which full sequences are permitted.

This distinction becomes more important when the graph is larger. Two edges observed in different cases might appear to form a route that no actual case followed. A reader should inspect complete variants or an appropriately constructed model before interpreting that combination as a discovered process path. Likewise, a frequency filter that hides rare transitions can make a diagram easier to read while suppressing a potentially important exception. Keep the unfiltered counts and explain which transitions were removed from the displayed view. Never use a filtered discovery diagram as the sole evidence that a mandatory step was performed.

For example, if the compliance team requests all paid claims without a recorded review, the analyst should query the case-level ordering rule directly rather than rely on a graph whose low-frequency edges were hidden. Document the query, extraction date and the resulting case identifiers in a controlled review record. The general process report can present aggregate counts without exposing personal claim details.

Process Mining Working Worksheet

Analysis FieldWhat To Record
Process BoundaryFirst And Final Meaningful Events
Case DefinitionUnique Identifier And Related Object Rules
Activity DictionaryOperational Meaning Of Every Event
OrderingTimezone, Sequence Field And Tie Handling
Quality ChecksMissing Values, Duplicates, Incomplete Traces
DiscoveryCompleted Variants And Open Cases
ConformanceReference Model, Version And Exact Rule
PerformanceDefined Elapsed Intervals And Denominators
ImprovementHypothesis, Owner, Trial And Verification

An event log is evidence about a recorded system, not a complete observation of every action people perform. A final analysis should make its extraction conditions reproducible, present the important exceptions and show how interpretations were validated. Where event records are insufficient, direct observation through a gemba walk, interviews or document review may clarify what actually occurred. Process mining becomes most useful when the map, measurements and operational investigation lead to a practical change whose results can be verified.

Frequently Asked Questions

What is process mining?

It uses recorded events to investigate process behavior, compare execution with a model and identify opportunities for improvement.

What are the basic event log fields?

A conventional log includes a case identifier, activity and timestamp; other attributes can improve analysis.

What is a trace?

The ordered sequence of recorded activities for one defined case.

What is a process variant?

A group of cases with the same sequence under the chosen grouping definition.

What is conformance checking?

It compares observed event behavior with a defined reference model or rule.

Does an absent event prove a task was skipped?

An absent event may reflect an actual deviation or a gap in event capture; investigate the evidence.

Can process mining measure hands-on time?

Only when the available records reliably identify the relevant activity start and finish intervals.

How should open cases be handled?

Report them separately and use a documented treatment for incomplete or censored durations.

Is a frequent process variant always correct?

Frequency describes observed behavior, not whether it satisfies requirements.

What happens after discovering a bottleneck?

Investigate its cause, design a controlled change and repeat comparable measurements after implementation.

Leave a Reply

Your email address will not be published. Required fields are marked *