Beispiel #1
0
def execute_script():
    ocel = pm4py.read_ocel(
        os.path.join("..", "tests", "input_data", "ocel",
                     "example_log.jsonocel"))
    ocdfg = pm4py.discover_ocdfg(ocel)
    # views the model with the frequency annotation
    pm4py.view_ocdfg(ocdfg, format="svg")
    # views the model with the performance annotation
    pm4py.view_ocdfg(ocdfg,
                     format="svg",
                     annotation="performance",
                     performance_aggregation="median")
 def test_discovery_ocfg_p2(self):
     target_path = os.path.join("test_output_data", "model.svg")
     ocel = pm4py.read_ocel(
         os.path.join("input_data", "ocel", "example_log.jsonocel"))
     ocdfg = pm4py.discover_ocdfg(ocel)
     pm4py.save_vis_ocdfg(ocdfg,
                          target_path,
                          annotation="performance",
                          act_metric="unique_objects",
                          edge_metric="ev_couples",
                          act_threshold=2,
                          edge_threshold=1)
     os.remove(target_path)
 def test_discovery_ocfg_p6(self):
     target_path = os.path.join("test_output_data", "model.svg")
     ocel = pm4py.read_ocel(
         os.path.join("input_data", "ocel", "example_log.jsonocel"))
     ocdfg = pm4py.discover_ocdfg(ocel, business_hours=True)
     pm4py.save_vis_ocdfg(ocdfg,
                          target_path,
                          annotation="performance",
                          act_metric="unique_objects",
                          edge_metric="total_objects",
                          act_threshold=2,
                          edge_threshold=1,
                          performance_aggregation="median")
     os.remove(target_path)