pm4py.objects.ocel.util.ev_att_to_obj_type module#

class pm4py.objects.ocel.util.ev_att_to_obj_type.Parameters(*values)[source]#

Bases: Enum

EVENT_ID = 'param:event:id'#
EVENT_ACTIVITY = 'param:event:activity'#
EVENT_TIMESTAMP = 'param:event:timestamp'#
OBJECT_ID = 'param:object:id'#
OBJECT_TYPE = 'param:object:type'#
INTERNAL_INDEX = 'param:internal:index'#
pm4py.objects.ocel.util.ev_att_to_obj_type.apply(ocel: OCEL, param: str, parameters: Dict[Any, Any] | None = None)[source]#

Transforms an event attribute to an object type.

Parameters:
  • ocel – Object-centric event log

  • param – Event attribute that should be moved at the event level

  • parameters – Parameters of the algorithm, including: - Parameters.EVENT_ID => the event identifier column - Parameters.EVENT_ACTIVITY => the event activity column - Parameters.EVENT_TIMESTAMP => the event timestamp column - Parameters.OBJECT_ID => the object identifier column - Parameters.OBJECT_TYPE => the object type column - Parameters.INTERNAL_INDEX => the internal index

Returns:

OCEL in which the attribute has been moved to the object type level.

Return type:

new_ocel