pm4py.write.write_ptml#

pm4py.write.write_ptml(tree: ProcessTree, file_path: str, encoding: str = 'utf-8') None[source]#

Writes a process tree object to disk in the .ptml format.

Parameters:
  • tree (ProcessTree) – ProcessTree object that needs to be written to disk

  • file_path (str) – target file path on disk of the .ptml file

  • encoding (str) – the encoding to be used (default: utf-8)

import pm4py

log = pm4py.write_ptml(tree, '<path_to_export_to>')