process_mining / pm4py /examples /bpmn_js_visualization.py
linpershey's picture
Add 'pm4py/' from commit '80970016c5e1e79af7c37df0dd88e17587fe7bcf'
b4ba3ec
raw
history blame
335 Bytes
import pm4py
import importlib.util
def execute_script():
log = pm4py.read_xes("../tests/input_data/running-example.xes")
bpmn_model = pm4py.discover_bpmn_inductive(log)
if importlib.util.find_spec("graphviz"):
pm4py.view_bpmn(bpmn_model, variant_str="dagrejs")
if __name__ == "__main__":
execute_script()