pm4py.vis.view_bpmn#

pm4py.vis.view_bpmn(bpmn_graph: BPMN, format: str = 'png', bgcolor: str = 'white', rankdir: str = 'LR', variant_str: str = 'classic', graph_title: str | None = None)[source]#

Views a BPMN graph.

Parameters:
  • bpmn_graph (BPMN) – BPMN graph

  • format (str) – Format of the visualization (if ‘html’ is provided, GraphvizJS is used to render the visualization in an HTML page)

  • 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)

  • variant_str (str) – Variant of the visualization to be used (“classic” or “dagrejs”)

  • graph_title – Sets the title of the visualization (if provided)

import pm4py

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