pm4py.vis.save_vis_bpmn#

pm4py.vis.save_vis_bpmn(bpmn_graph: BPMN, file_path: str, bgcolor: str = 'white', rankdir: str = 'LR', **kwargs)[source]#

Saves the visualization of a BPMN graph

Parameters:
  • bpmn_graph (BPMN) – BPMN graph

  • file_path (str) – Destination path

  • bgcolor (str) – Background color of the visualization (default: white)

  • rankdir (str) – sets the direction of the graph (“LR” for left-to-right; “TB” for top-to-bottom)

import pm4py

bpmn_graph = pm4py.discover_bpmn_inductive(dataframe, activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp')
pm4py.save_vis_bpmn(bpmn_graph, 'trial.bpmn')