[Paper Review] SQL Queries for Declarative Process Mining on Event Logs of Relational Databases
This paper proposes an SQL-based declarative process mining approach that directly queries relational event logs stored in databases, enabling efficient and customizable discovery of process constraints. By leveraging standard SQL and the RelationalXES schema, the method achieves high performance without restricting constraint types, supporting both control-flow and resource-based patterns like Role-Based Precedence with confidence and support metrics.
Flexible business processes can often be modelled more easily using a declarative rather than a procedural modelling approach. Process mining aims at automating the discovery of business process models. Existing declarative process mining approaches either suffer performance issues with real-life event logs or limit their expressiveness to a specific set of constaint types. Lately, with RelationalXES a relational database architecture for storing event log data has been introduced. In this technical report, we introduce a mining approach that directly works on relational event data by querying the log with conventional SQL. We provide a list of SQL queries for discovering a set of commonly used and mined process constraints.
Motivation & Objective
- To address performance bottlenecks in declarative process mining on real-life event logs.
- To overcome the limitation of existing approaches that restrict constraint types to predefined sets.
- To enable flexible, customizable mining of declarative process models directly from relational databases.
- To support discovery of both control-flow and resource-related constraints using standard SQL.
- To integrate organizational perspectives (e.g., roles) into process mining via SQL-based querying.
Proposed method
- The approach uses standard SQL queries to mine process constraints directly from event logs stored in a relational database using the RelationalXES (RXES) schema.
- It defines a set of SQL queries to discover common control-flow constraints from the Declare language, such as Response, Precedence, and Mutual Exclusion.
- It extends mining to resource assignment patterns by joining event logs with resource role information from a Relation table.
- It computes support and confidence metrics using subqueries that count valid instances and traces, normalized by total trace counts.
- It supports Role-Based Precedence and Role-Based Response constraints by filtering events based on resource roles and temporal ordering.
- Queries are structured with self-joins on the Log table and correlated subqueries to evaluate temporal and organizational conditions.
Experimental results
Research questions
- RQ1Can declarative process mining be efficiently performed on large-scale relational event logs using standard SQL?
- RQ2Can SQL-based queries discover a broad range of declarative constraints without hardcoding constraint types?
- RQ3How can organizational roles be integrated into the mining process to discover role-dependent process patterns?
- RQ4Can support and confidence metrics be accurately computed using standard SQL on normalized relational event data?
- RQ5To what extent does the SQL-based approach outperform existing declarative mining tools in terms of performance and expressiveness?
Key findings
- The SQL-based mining approach achieves high performance by leveraging relational database optimization, avoiding the scalability issues of in-memory or custom-engine approaches.
- The method successfully discovers common control-flow constraints such as Response, Precedence, and Mutual Exclusion using standard SQL queries.
- It supports resource-aware constraints like Role-Based Precedence and Role-Based Response, enabling organizational perspective mining.
- Support and confidence metrics are computed accurately via subqueries that count valid instances and traces, with thresholds set at 0.7 and 0.5 respectively for filtering.
- The approach is fully customizable, allowing users to extend queries for new constraint types without modifying underlying mining engines.
- The method demonstrates a viable trade-off between performance and expressiveness, outperforming existing approaches that sacrifice flexibility for speed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.