pm4py.vis.save_vis_powl(powl: POWL, file_path: str, bgcolor: str = 'white', rankdir: str = 'TB', **kwargs)[source]#

Saves the visualization of a POWL model.

Reference paper: Kourani, Humam, and Sebastiaan J. van Zelst. “POWL: partially ordered workflow language.” International Conference on Business Process Management. Cham: Springer Nature Switzerland, 2023.

  • powl (POWL) – POWL model

  • file_path (str) – target path of the visualization

  • 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
    log = pm4py.read_xes('tests/input_data/running-example.xes')
    powl_model = pm4py.discover_powl(log)
    pm4py.save_vis_powl(powl_model, 'powl.png')