pm4py.write.write_bpmn#
- pm4py.write.write_bpmn(model: BPMN, file_path: str, auto_layout: bool = True, encoding: str = 'utf-8') None [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 pm4py.write_bpmn(model, '<path_to_export_to>', auto_layout=True)