pm4py.write.write_bpmn#

pm4py.write.write_bpmn(model: BPMN, file_path: str, auto_layout: bool = True, encoding: str = 'utf-8')[source]#

Writes a BPMN model object to disk in the .bpmn format.

Parameters:
  • model (BPMN) – BPMN model to export

  • file_path (str) – target file path on disk to write the BPMN object to

  • auto_layout (bool) – boolean indicating whether the model should get an auto layout (which is written to disk)

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

import pm4py

log = pm4py.write_bpmn(model, '<path_to_export_to>')