Skip to content

Conversation

@david-chapela
Copy link
Collaborator

When Split Miner (both versions) discovers a BPMN model with tasks with self-loops, it describes it through a tag within the task. Added an automated translation of the model to explicitly model such self-loops with an XOR-split/XOR-join structure.

…loops

Split Miner discovers BPMN models where, when an activity has a self-loop, it denotes it through an attribute in the '<task>' element, rather than an explicit XOR gateway structure.
The post-processing stage surrounds all tasks with such attribute with an XOR-split/XOR-join structure that models a self-loop of that activity.
Split Miner 1 (SM1) uses all events written in the XES file to form the sequence of activities corresponding to each case. If running SM1 with a XES event log storing both lifecycles (Start and End), SM1 interprets it as two events of the same activity, and thus discovers a self-loop for all of them.
Simod now generates two XES, one with two events per activity instance (start and end), and another one with only one (end).
Still an issue, not SM1 or SM2 order the events of a trace. In the case of SM2, they are written always in pairs (A_s-A_e then B_s-B_e), when two activities are in parallel, SM2 reads the written order (A_s-A_e-B_s-B_e) and doesn't interpret real chronological order (A_s-B_s-A_e-B_e).
TODO: either change XES writer to write events individually in order, or change SM2 to sort before using.
@sonarqubecloud
Copy link

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 98.09524% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.50%. Comparing base (e1ec3d4) to head (e4c042d).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/simod/event_log/event_log.py 89.47% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage   86.99%   87.50%   +0.50%     
==========================================
  Files          58       57       -1     
  Lines        2715     2793      +78     
==========================================
+ Hits         2362     2444      +82     
+ Misses        353      349       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@david-chapela david-chapela merged commit 02afc5f into master Feb 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants