- Release notes
- Before you begin
- Getting started
- Integrations
- Working with process apps
- Working with dashboards and charts
- Working with process graphs
- Working with Discover process models and Import BPMN models
- Showing or hiding the menu
- Context information
- Export
- Filters
- Sending automation ideas to UiPath® Automation Hub
- Tags
- Due dates
- Compare
- Conformance checking
- Root cause analysis
- Starting a Task Mining project from Process Mining
- Triggering an automation from a process app
- Viewing Process data
- Creating apps
- Loading data
- Customizing process apps
- Publishing process apps
- App templates
- Additional resources

Process Mining
Transformations
The transformations of a process app consist of a dbt project. The following table describes the contents of a dbt project folder.
Folder/file |
Contains |
---|---|
|
the
pm_utils package and its macros.
|
|
optional folder for custom macros |
|
.sql files that define the transformations.
|
|
.yml files that define tests on the data.
|
|
.csv files with configuration settings.
|
|
the settings of the dbtproject. |
The following illustration shows the folder structure.
The dbt_project.yml file contains settings of the dbt project which defines your transformations. The vars section contains variables that are used in the transformations.
Date/time format
Each app template contains variables that determine the format for parsing date/time data. These variables have to be adjusted if the input data has a different date/time format than expected.
.sql
files in the models\
directory. The data transformations are organized in a standard set of sub directories:
1_input
,2_objects
,3_events
,4_event_logs
,5_business_logic
.
Check out Structure of transformations.
.sql
files are written in Jinja SQL, which allows you to insert Jinja statements inside plain SQL queries. When dbt runs all .sql
files, each .sql
file results in a new view or table in the database.
.sql
files have the following structure:
-
With statements: One or more with statements to include the required sub tables.
{{ ref(‘My_table) }}
refers to table defined by another .sql file.{{ source(var("schema_sources"), 'My_table') }}
refers to an input table.
- Main query: The query that defines the new table.
-
Final query: Typically a query like
Select * from table
is used at the end. This makes it easy to make sub-selections while debugging.
For more tips on how to write transformations effectively, refer to Tips for writing SQL
models\schema\sources.yml
. This way, other models can refer to it by using {{ source(var("schema_sources"), 'My_table') }}
. The following illustration shows an example.
sources.yml
.
For more information using on using source tables in queries, refe to Structure of transformations:1. Input. For more detailed information, refer to the official dbt documentation on Sources.
Macros make it easy to reuse common SQL constructions. For detailed information, refer to the official dbt documentation on Jinja macros.
pm-utils
package contains a set of macros that are typically used in Process Mining transformations. For more info about the pm_utils
macros, check out ProcessMining-pm-utils.
pm_utils.optional()
macro.
csv
files that are used to add data tables to your transformations. For detailed information, refer to the official dbt documentation on jinja seeds.
In Process Mining, this is typically used to make it easy to configure mappings in your transformations.
After editing seed files, run the file by selecting Run file or Run all, to update the corresponding data table.
models\schema\
folder contains a set of .yml
files that define tests. These validate the structure and contents of the expected data. For detailed information, refer
to the official dbt documentation on tests.
Data transformations are used to transform input data into data suitable for Process Mining. The transformations in Process Mining are written as dbt projects.
This pages gives an introduction to dbt. For more detailed information, refer to the official dbt documentation.
pm_utils
. This pm-utils
package contains utility functions and macros for Process Mining dbt projects. For more info about the pm_utils
, refer to ProcessMining-pm-utils.
pm-utils
package by adding new functions.
pm-utils
package is released, you are advised to update the version used in your transformations, to make sure that you make use of
the latest functions and macros of the pm-utils
package.
pm-utils
package in the Releases panel of the ProcessMining-pm-utils.
pm-utils
version in your transformations.
-
Download the source code (zip) from the release of
pm-utils
. -
Extract the
zip
file and rename to folder to pm_utils. -
Export transformations from the inline Data transformations editor and extract the files.
-
Replace the pm_utils folder from the exported transformations with the new pm_utils folder.
-
Zip the contents of the transformations again and import them in the Data transformations editor.