Tutorial | Process Mining#

Get started#

In this tutorial, you’ll use the Process Mining Business Application to analyze a fictional e-commerce company’s order-to-cash event log.

See also

For background on process mining concepts, see Concept | Process Mining.

Objectives#

In this tutorial, you’ll:

  • Open the Process Mining Business Application and browse available datasets.

  • Create a study by selecting an event log dataset and configuring column mappings.

  • Explore the process graph and identify the most common execution paths.

  • Analyze specific variants and individual cases in the Cases & Variants Explorer.

  • Save your study and share it with your team.

Prerequisites#

To complete this tutorial, you need:

  • One of the following user profiles: Data Designer, Advanced Analytics Designer, or Full Designer.

  • Access to a Dataiku instance with the Process Mining Business Application installed.

  • Write permissions within the Process Mining application.

Note

If the Process Mining Business Application isn’t available in your instance, or if you don’t have the required permissions, contact your Dataiku administrator.

Use case summary#

This tutorial uses an event log from a fictional e-commerce company that sells wooden bird figurines. The dataset records every step in the order fulfillment lifecycle, from purchase to delivery.

The goal is to understand how orders actually flow through the fulfillment process, identify which variants represent efficient execution, and find where delays and exceptions most frequently occur.

Event log columns used in this tutorial#

Column

Maps to

Description

order_id

Case

Unique identifier for each order

activity_name

Activity

Name of the fulfillment step

event_ts

Start Timestamp

Date and time when the activity started

event_end_ts

End Timestamp

Date and time when the activity was completed

event_sequence

Sorting

Ordering column for activities with identical timestamps

customer_region

Case Attribute

Geographic region of the customer

payment_method

Case Attribute

Payment method used

Tip

Unfamiliar with some of these terms? The concept article defines the core concepts in the key concepts table and all mapping fields in the Data configuration section.

Open the app#

The Process Mining Business Application runs as a standalone web application. You access it from the Dataiku homepage.

  1. From the Dataiku homepage, click Process Mining in the left navigation panel.

  2. Click + Create Instance.

  3. In the Name field, enter Order-to-Cash Tutorial.

  4. Click Create. The landing page opens.

Screenshot of the Dataiku homepage showing Process Mining selected in the left navigation panel and the Create Instance dialog open.

Browse the data library#

Before creating a study, preview the demo dataset to familiarize yourself with its structure.

  1. In the left sidebar, click Data library.

  2. Click Preview on the PROCESSMINING_wooden_birds_small_10k_cases_100k_events dataset. A dataset preview opens, showing the first rows.

    Important

    If you don’t see the dataset, ask your Dataiku administrator to make it available.

  3. Review the columns to confirm that the dataset contains the expected fields: order_id, activity_name, event_ts, and the other columns listed in the use case summary above.

Screenshot of the Data library showing the ecommerce_orders_event_log dataset selected, with column statistics displayed in the preview panel on the right.

Once you’ve reviewed the dataset, you’re ready to create a study.

Create a study#

A study is a saved analysis configuration. It captures the dataset, column mappings, and filters you set up, so you can return to your work at any time or share it with colleagues.

Name and select data#

  1. Close the preview and click Start study on the PROCESSMINING_wooden_birds_small_10k_cases_100k_events dataset.

  2. Enter the name Order-to-Cash Analysis and click the checkmark to save.

Tip

Studies are visible to all users of this app instance. In production use, choose a name that identifies both the dataset and your analysis focus so that colleagues can understand the study’s purpose at a glance.

The data configuration page opens, and a preview of the dataset rows and column statistics appears.

Review column mappings#

The application automatically maps columns based on their names. Review the mapping in the column headers above the data preview to confirm each field is correctly assigned.

  1. Check that the three required fields are mapped: Case ID to order_id, Activity to activity_name, and Start Timestamp to event_ts.

  2. Verify the optional fields: End Timestamp to event_end_ts, Sorting to event_sequence, and Case attributes to bird_model, wood_type, color, and finish_type.

  3. In the customer_region column, click Map column and assign it as an additional Case attribute.

Screenshot of the data configuration screen showing automatically mapped column headers with their assigned field types, and a dropdown open on one column to show how to change the mapping.

When the All required mapped banner appears at the top, you’re ready to proceed.

Tip

If a column is incorrectly mapped, click its header to open the dropdown and reassign it.

Review the data preview#

The application shows a data quality indicator and a preview of the interpreted event log.

  1. Review the data quality indicator at the top of the screen. It shows the number of cases the application considers valid.

    Note

    A low percentage of valid cases typically indicates that some Case IDs have fewer than two events, activity names contain null values, or timestamps are missing. Consult the built-in Documentation page (accessible from the app landing page) for data preparation guidance.

  2. Scroll through the preview table to confirm that order_id and activity_name values look correct.

  3. When you’re satisfied, click Explore Process.

Screenshot of the data preview showing the data quality indicators.

The application processes the event log and opens the Process Explorer.

Explore the process#

The Process Explorer visualizes your event data as a directed process graph.

Read the process graph#

Take a moment to understand what the graph shows before you interact with it.

  • Nodes (rectangles) represent activities: the named steps in your process.

  • Arrows represent transitions: a case moving from one activity to the next.

  • Color intensity reflects either frequency (how often) or duration (how long), depending on the active view.

Locate the start node at the top of the graph and the end node at the bottom.

Screenshot of the full process graph in Frequency view, showing activity nodes with frequency-encoded coloring and directional arrows between activities.

By default, you’re viewing variant 1 of 35, the most common execution path. You’ll adjust this in the next steps.

Tip

You can zoom in to focus on specific parts of the graph, or zoom out for an overview.

Switch between frequency and time#

By default, the graph uses Frequency view, which encodes the number of times each activity and transition occurred. Switching to Time view highlights where the process slows down.

  1. At the top of the graph, click Time. Node and transition colors now reflect median duration. Darker colors indicate slower steps.

  2. Identify which activity or transition has the darkest color. That step is likely a bottleneck in the process.

Screenshot of the full process graph in Time view.

Tip

Click any activity node to open its detail panel. The statistics shown there reflect the active filter scope, not just the variants currently visible in the graph.

Adjust the variant slider#

The variant slider controls how many of the most frequent variants are shown in the graph. Moving it to the right reveals lower-frequency paths, including edge cases and exceptions.

  1. Move the slider to 5. New paths appear in the graph, including branches and deviations not visible in variant 1.

  2. Identify a branch or deviation. For example, a path where orders go through a Payment Review step before being authorized.

Screenshot of the full process graph showing 5 variants.

Tip

Start with 5-10 variants to understand the most common execution paths, then increase gradually to explore edge cases. Most processes follow a few common paths. Understand those before investigating outliers.

Apply filters#

The Customization panel lets you scope the analysis to a specific time period, case attribute value, or activity count. The KPI’s & Charts panel on the right displays key metrics computed from the current dataset and active filters.

  1. Click Customize to expand the left panel.

  2. Click KPI’s & Charts to expand the right panel.

  3. Under Filters, select the date range covering March 2025.

  4. Scroll down and click the customer_region filter, then select only North America.

Note

The graph now shows only cases that match both filter conditions. The KPI cards update to reflect the filtered data.

  1. In the top banner, click the X button next to each active filter to remove them and return to the full dataset before continuing.

Screenshot of the Process Explorer with an active date range filter and a customer_region filter, showing the filtered process graph and updated KPI cards.

Add a custom KPI#

The Customize panel also lets you define custom KPIs alongside the built-in ones. In this step, you’ll track the share of orders originating from North America.

  1. In the Customize panel, scroll to the Business Metrics section and click + Add custom metric.

  2. In the KPI name field, enter North America Rate.

  3. For Aggregation type, select Rate.

  4. In the Filter dropdown, select customer_region, then set the value to North America.

  5. Click Save.

Screenshot of the Add custom metric dialog showing the North America Rate KPI configured with Rate aggregation and a customer_region filter set to North America.

The new KPI appears in the KPI’s & Charts panel and updates automatically as you adjust filters or the variant slider.

Add a custom chart#

The Customize panel also lets you add custom charts to visualize how metrics evolve. In this step, you’ll track the North America Rate KPI week by week.

  1. Still in the Customize panel, scroll to the Charts section and click + Add custom chart.

  2. Enter North America Rate per week as the Chart title.

  3. For Chart type, select Bar chart.

  4. In the Metric dropdown, select North America Rate.

  5. Click Save.

Screenshot of the Add custom chart dialog showing the North America Rate per week bar chart configured, alongside the KPIs and Charts panel displaying the new chart.

The chart appears in the KPI’s & Charts panel, visualizing the North America Rate broken down by week.

Analyze variants and cases#

The Cases & Variants explorer lets you drill into the specific variants and individual cases that make up the process.

Browse variants#

The left panel lists all variants ranked by frequency. Select one to see its cases in the center table.

  1. In the left sidebar, click Cases & Variants.

  2. Click the first variant (069bf7e) to select it.

  3. Sort the case table by Total Time in descending order to bring the slowest cases to the top.

  4. Mark the first variant as the reference variant.

  5. Click the pencil icon next to the variant name and rename it Standard Fulfillment. Descriptive names make it easier to communicate findings across teams.

Screenshot of the Cases and Variants Explorer with Variant 1 selected as the reference variant, showing conformance scores on the other variants in the left panel.

Note

The left panel lists all variants discovered in the dataset, ranked by frequency by default. The center table shows all cases that followed the selected variant. Each row represents one order.

Once a reference variant is set, a conformance score appears for all other variants, showing how far each execution path deviates from the intended process.

Inspect a specific case#

With the cases sorted, you’re ready to examine the slowest one in detail.

  1. In the case table, click the row of the slowest case identified in the previous step.

  2. Examine the Case Graph on the right. It shows the actual sequence of activities this order followed, with per-activity timestamps and durations, so you can pinpoint where it spent the most time.

Screenshot of the individual case detail panel showing the case graph with per-activity timestamps and durations.

Tip

Use the Flatten toggle when inspecting a case with repeated activities. It switches between a compact view that collapses those repetitions and a linear view that unfolds each occurrence in sequence.

Export cases#

The Cases & Variants explorer supports export, allowing you to save the current case selection to a Dataiku dataset for further analysis.

  1. Click Export cases.

  2. In the confirmation dialog, click Export cases to confirm.

  3. Click Open dataset to view the exported data.

Note

Export must be enabled by a Dataiku administrator. If the export option is unavailable, contact your administrator.

Share your findings#

With the analysis complete, you can go to the Summary page to present your findings, and share the study with your team.

Review the Summary page#

The Summary page lets you surface the key insights from your analysis in a format suitable for sharing with stakeholders.

  1. In the left sidebar, click Summary.

  2. Scroll through the page and verify that your custom additions are present: the North America Rate KPI, the North America Rate per week chart, and the Standard Fulfillment reference variant.

Screenshot of the Summary page showing the highlighted findings from the Order-to-Cash analysis.

The page brings together the key outputs of your analysis, including the process graph, KPIs, and charts, allowing you to communicate your findings without requiring stakeholders to navigate the full study.

Share your study#

Your study is saved automatically as you work. You can share it at any time from the landing page.

  1. Click the Back button in the left sidebar to return to the app’s landing page.

  2. Click the share icon next to the study name to copy a direct URL to your clipboard.

Anyone with access to this app instance can open the study using this link.

Important

A study stores its configuration (the dataset reference, column mappings, and filters), not a snapshot of the data. If the underlying dataset is updated, the study will reflect the new data the next time it’s opened.

Next steps#

Congratulations! You’ve completed your first end-to-end analysis with the Process Mining Business Application.

See also

  • The app’s built-in Documentation page (left sidebar) for data model requirements, methodology details, and admin configuration options.

  • Process Mining article for the full product reference documentation.