File size: 473 Bytes
8097001
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pm4py
import os
from pm4py.statistics.overlap.cases.log import get as case_overlap_get


def execute_script():
    log = pm4py.read_xes(os.path.join("..", "tests", "input_data", "receipt.xes"))
    # calculates the WIP statistics from the event log object.
    # The WIP statistic associates to each case the number of cases open during the lifecycle of the case
    wip = case_overlap_get.apply(log)
    print(wip)


if __name__ == "__main__":
    execute_script()