pm4py.filtering.filter_ocel_cc_activity#

pm4py.filtering.filter_ocel_cc_activity(ocel: OCEL, activity: str) OCEL[source]#

Filters the objects belonging to the connected components having at least an event with the provided activity.

Paper: Adams, Jan Niklas, et al. “Defining cases and variants for object-centric event data.” 2022 4th International Conference on Process Mining (ICPM). IEEE, 2022.

Parameters:
  • ocel (OCEL) – object-centric event log

  • activity (str) – activity

Return type:

OCEL

import pm4py

ocel = pm4py.read_ocel('log.jsonocel')
filtered_ocel = pm4py.filter_ocel_cc_activity(ocel, 'Create Order')