Skip to content

Implemented process trees#28

Merged
cRennert merged 31 commits intomainfrom
feat/process_tree
Aug 27, 2025
Merged

Implemented process trees#28
cRennert merged 31 commits intomainfrom
feat/process_tree

Conversation

@cRennert
Copy link
Copy Markdown
Collaborator

No description provided.

@cRennert cRennert requested a review from aarkue June 25, 2025 12:28
Copy link
Copy Markdown
Owner

@aarkue aarkue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty to merge main into this branch and fix a few of the (new) formatting/linting rules.

The only issues I have are regarding the UUIDs / tree structure implementation. Maybe there is a good reason for them that I currently don't see, but we can also discuss this in more detail later.

Comment thread process_mining/src/process_tree/process_tree_struct.rs Outdated
Comment thread process_mining/src/process_tree/process_tree_struct.rs Outdated
aarkue and others added 23 commits July 30, 2025 11:15
`From<Vec<Attribute>>` is ambiguous since it _could_ be interpreted as a List or
Container. Currently, a List is assumed.
`attribute`, `attributes`, `event`, `trace`, `log`,
Since without the semicolon, a `[` would follow a `{`, there is no
reason to require a semicolon.
For now, this has been made optional, but all examples still use a
semicolon
Otherwise, the macros would only work if the user has chrono as a
dependency.
trace ids and manual, integer, trace ids

For instance, the invocation `event_log!(["a"], ["b"] {"concept:name" =>
0})` has two traces with trace id `0`.
- Implement `From<_>` for `AttributeValue`
- Re-export `chrono`
- Add macros for event log creation. For instance:

```rust
attribute!("concept:name" => "Approve");
attributes!(
    "concept:name" => "Approve",
    "time:timestamp" => chrono::Utc::now()
);

event!("a");
event!("b"; {"org:resource" => "John"});

trace!("a", "b", "c", "d");
trace!(
    {"outcome" => "approved"};
    "a"; {"time:timestamp" => chrono::Utc::now()}, "b", "c", "d"
);

event_log!(
    ["a", "b", "c", "d"],
    ["a", "c", "b", "d"],
);
event_log!(
    {"created_at" => chrono::Utc::now()};
    ["a", "b", "c", "d"] {"approved" => true},
    ["a", "c"; {"org:resource" => "John"}, "b", "d"],
);
```
@cRennert cRennert merged commit cff3b89 into main Aug 27, 2025
3 checks passed
@aarkue
Copy link
Copy Markdown
Owner

aarkue commented Aug 27, 2025

🥳

@cRennert cRennert deleted the feat/process_tree branch August 27, 2025 09:03
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