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.
How do I export an XES log from the CLI?
I am currently automating a workflow via the ProM 6.10 CLI and java scripts. The final step would be to export the newly obtained xes event log, the output of the script. Going through the variants, I stumbled upon a plugin named "Export Log to XES File". Running my script gave the following Exception: "Command not found: export_log_to_xes_file( org.deckfour.xes.model.impl.XLogImpl, java.io.File )".
When going through the source code, I noticed the plugin required a UIPluginContext. How then can I export an event log from the CLI?
Kind regards
Greg
When going through the source code, I noticed the plugin required a UIPluginContext. How then can I export an event log from the CLI?
Kind regards
Greg
Answers
-
Hi Greg,If log is your event log (org.deckfour.xes.model.XLog), and exportfile the file you want to export the event log to (java.io.File), then the following line will work:
org.processmining.plugins.log.exporting.ExportLogXes.export(log, exportfile);
Kind regards,Eric.
-
Dear Eric,
Thanks for the speedy reply! That line worked wonders. Thank you.
Kind regards
Greg
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