pm4py.algo.filtering.ocel.ot_endpoints module#

class pm4py.algo.filtering.ocel.ot_endpoints.Parameters(*values)[source]#

Bases: Enum

EVENT_ID = 'param:event:id'#
OBJECT_ID = 'param:object:id'#
OBJECT_TYPE = 'param:object:type'#
pm4py.algo.filtering.ocel.ot_endpoints.filter_start_events_per_object_type(ocel: OCEL, object_type: str, parameters: Dict[Any, Any] | None = None) OCEL[source]#

Filters the events in which a new object for the given object type is spawn. (E.g. an event with activity “Create Order” might spawn new orders).

Parameters:
  • ocel – Object-centric event log

  • object_type – Object type to consider

  • parameters – Parameters of the algorithm, including: - Parameters.EVENT_ID => the attribute working as event identifier - Parameters.OBJECT_ID => the attribute working as object identifier - Parameters.OBJECT_TYPE => the attribute working as object type

Returns:

Filtered object-centric event log

Return type:

filtered_ocel

pm4py.algo.filtering.ocel.ot_endpoints.filter_end_events_per_object_type(ocel: OCEL, object_type: str, parameters: Dict[Any, Any] | None = None) OCEL[source]#

Filters the events in which an object for the given object type terminates its lifecycle. (E.g. an event with activity “Pay Order” might terminate an order).

Parameters:
  • ocel – Object-centric event log

  • object_type – Object type to consider

  • parameters – Parameters of the algorithm, including: - Parameters.EVENT_ID => the attribute working as event identifier - Parameters.OBJECT_ID => the attribute working as object identifier - Parameters.OBJECT_TYPE => the attribute working as object type

Returns:

Filtered object-centric event log

Return type:

filtered_ocel