Exemplo n.º 1
0
def process_quantities_test(path):
    handler = ParquetHandler()
    handler.build_from_csv(path)
    handler.get_start_activities()
    handler.get_end_activities()
    handler.get_variant_statistics()
    cases = handler.get_case_statistics()
    case_id_0 = cases[0]['caseId']
    handler.get_variant_statistics()
    handler.get_paths("concept:name")
    handler.get_attribute_values("concept:name")
    handler.get_events(case_id_0)
Exemplo n.º 2
0
 def test_ru_filtering(self):
     handler = ParquetHandler()
     handler.build_from_csv("logs//running-example.csv")
     handler = handler.add_filter(
         ['timestamp_trace_intersecting', '1293703320@@@1294667760'],
         ['timestamp_trace_intersecting', '1293703320@@@1294667760'])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.add_filter(
         ['timestamp_trace_containing', '1293703320@@@1294667760'],
         [['timestamp_trace_intersecting', '1293703320@@@1294667760'],
          ['timestamp_trace_containing', '1293703320@@@1294667760']])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.remove_filter(
         ['timestamp_trace_containing', '1293703320@@@1294667760'],
         [['timestamp_trace_intersecting', '1293703320@@@1294667760']])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.remove_filter(
         ['timestamp_trace_intersecting', '1293703320@@@1294667760'], [])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.add_filter(['end_activities', ['reject request']],
                                  [['end_activities', ['reject request']]])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.add_filter(
         ['attributes_pos_trace', ['concept:name', ['check ticket']]],
         [['end_activities', ['reject request']],
          ['attributes_pos_trace', ['concept:name', ['check ticket']]]])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()
     handler = handler.remove_filter(
         ['attributes_pos_trace', ['concept:name', ['check ticket']]],
         [['end_activities', ['reject request']]])
     handler = handler.remove_filter(['end_activities', ['reject request']],
                                     [])
     handler.get_start_activities()
     handler.get_end_activities()
     handler.get_variant_statistics()