Exemple #1
0
def discoverProcess(miner, log):

    if miner == "Alpha":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_alpha(
            log)

    if miner == "Alpha+":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_alpha_plus(
            log)

    if miner == "Heuristic":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_heuristics(
            log)

    if miner == "Inductive":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_inductive(
            log)

    return petri_net, initial_marking, final_marking
Exemple #2
0
def visualizeProcess(view, petri_net, initial_marking, final_marking):

    if view == "Heuristics net":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_alpha(
            log)

    if view == "Petri net":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_alpha_plus(
            log)

    if view == "Process tree":
        petri_net, initial_marking, final_marking = pm4py.discover_petri_net_heuristics(
            log)

    if view == "BPMN":
        process = pm4py.view_petri_net(petri_net,
                                       initial_marking,
                                       final_marking,
                                       format='png')

    return process
Exemple #3
0
 def test_alpha_miner_plus(self):
     log = pm4py.read_xes("input_data/running-example.xes")
     net, im, fm = pm4py.discover_petri_net_alpha_plus(log)