pm4py.vis.view_powl#

pm4py.vis.view_powl(powl: POWL, format: str = 'png', bgcolor: str = 'white', variant_str: str = 'basic')[source]#

Perform a 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.

Parameters:
  • powl (POWL) – POWL model

  • format (str) – format of the visualization (default: png)

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

  • rankdir – 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 (values: “basic”, “net”)

    import pm4py
    
    log = pm4py.read_xes('tests/input_data/running-example.xes')
    powl_model = pm4py.discover_powl(log)
    pm4py.view_powl(powl_model, format='svg', variant_str='basic')
    pm4py.view_powl(powl_model, format='svg', variant_str='net')