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.
ProM 6 - MXML to XES
Answers
-
Hi Erika,
ProM 6 can read both the MXML and XES files. Just give it a try, you'll see
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 -
Hello JBuijs,the classes used to read MXML in ProM6 are the same used by ProM5? There are no changes?Thank you so much.
Erika B. -
Hi Erika,
I'm sorry, I did not read your first post good enough, now I notice that you want to develop a new plug-in.
In ProM 6 a completely new library is used to handle event logs. This class is able to read and write both XES and MXML logs. Interacting with event logs however is done in a way that is close to the XES standard definition.
Please see the OpenXES documentation at http://www.xes-standard.org/openxes/start for more details.
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 -
Thank you.Can I ask another question? Which existent plugin of ProM 6 reads a log MXML in input?Because I don't understand how to read the log and I downloaded many plugin with Package Manager but I couldn't find the right one.Also, ProM6 doesn't open alone, I have to run it through a classic plugin ("Hello World") from Eclipse.
Thank you so much.Erika B. -
Dear Erika,
You can read an MXML file using the following code snippet. Here, "file" is a java File object corresponding to your mxml.gz file. The MXML file will be interpreted as an XLog file and you can access the XLog file as the first element in the logList, i.e,. logList.get(0) will be your log file.
try{XMmxlGZIPParser parser = new XMxmlGZIPParser();
if(parser.canParse(file)){
List<XLog> logList = parser.parse(file);}
}catch(Exception e){e.printStackTrace();
}
Hope this helps.
Best Regards,
JC
-
Thank you!!
Erika -
I tried this code but it returns "null" if I try to print logList.
I need to read the log file as input (eg logs_Process_InstancesGLOBAL.mxml.gz) in ProM, so that my plugin can make a list of tracks that the user chooses, and he see the events inside.
Is there a way to retrieve this information?Thank you.Erika -
I solved the problem.Thanks to all!Erika
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