pm4py.vis.save_vis_powl#
- pm4py.vis.save_vis_powl(powl: POWL, file_path: str, bgcolor: str = 'white', rankdir: str = 'TB', graph_title: str | None = None, **kwargs)[source]#
Saves the visualization of a POWL model.
Reference: Kourani, Humam, and Sebastiaan J. van Zelst. “POWL: partially ordered workflow language.” International Conference on Business Process Management. Cham: Springer Nature Switzerland, 2023.
- Parameters:
powl (
POWL) – POWL modelfile_path (
str) – Target pathbgcolor (
str) – Background color (default: white)rankdir (
str) – Graph direction (“LR” or “TB”)graph_title –
Title of the visualization (if provided)
import pm4py log = pm4py.read_xes('tests/input_data/running-example.xes') powl_model = pm4py.discover_powl(log) pm4py.save_vis_powl(powl_model, 'powl.png')