To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.
Navigating logs in code
I am looking for the API or code to access log information in a faster than iterative way.
Specifically, I have imported an XES log and want to filter for all events in all traces with a specific value for the concept:name tag, then iterate over this filtered collection of events, and extract information and add information to each of these events, and then export this newly created log.
I have looked over the OpenXES API but so far couldn't find this functionality. Is it possible? The alternative is iterating over the whole log.
Thanks in advance.
Specifically, I have imported an XES log and want to filter for all events in all traces with a specific value for the concept:name tag, then iterate over this filtered collection of events, and extract information and add information to each of these events, and then export this newly created log.
I have looked over the OpenXES API but so far couldn't find this functionality. Is it possible? The alternative is iterating over the whole log.
Thanks in advance.
Comments
-
Wiebe,
I tried playing around with the XLogInfo and extracting event classes from it based on the concept:name event classifier.
So far I have not succeeded in extracting events that belong to a certain class according to a classifier.
So, as far as I know, iterating through the whole log is the only option at the moment.
As soon as anyone finds another way, let us know!
Joos Buijs
Senior Data Scientist and process mining expert at APG (Dutch pension fund executor).
Previously Assistant Professor in Process Mining at Eindhoven University of Technology -
It is there. I found the solution in the "Log" package, in the following class:
org.processmining.plugins.log.logfilters.LogFilter
-
You could/should also use the event name classifier, see http://code.deckfour.org/xes/doc/org/deckfour/xes/classification/XEventNameClassifier.html
Joos Buijs
Senior Data Scientist and process mining expert at APG (Dutch pension fund executor).
Previously Assistant Professor in Process Mining at Eindhoven University of Technology
Howdy, Stranger!
Categories
- 1.6K All Categories
- 45 Announcements / News
- 225 Process Mining
- 6 - BPI Challenge 2020
- 9 - BPI Challenge 2019
- 24 - BPI Challenge 2018
- 27 - BPI Challenge 2017
- 8 - BPI Challenge 2016
- 68 Research
- 1K ProM 6
- 393 - Usage
- 287 - Development
- 9 RapidProM
- 1 - Usage
- 7 - Development
- 54 ProM5
- 19 - Usage
- 187 Event Logs
- 32 - ProMimport
- 75 - XESame