pm4py.streaming.conversion.ocel_flatts_distributor module#

class pm4py.streaming.conversion.ocel_flatts_distributor.Parameters(*values)[source]#

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
CASE_ID_KEY = 'pm4py:param:case_id_key'#
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
OCEL_ACTIVITY_KEY = 'param:event:activity'#
OCEL_TIMESTAMP_KEY = 'param:event:timestamp'#
OCEL_TYPE_PREFIX = 'param:object:type:prefix:extended'#
class pm4py.streaming.conversion.ocel_flatts_distributor.OcelFlattsDistributor(parameters: Dict[Any, Any] | None = None)[source]#

Bases: object

register(object_type: str, live_event_stream: LiveEventStream)[source]#

Register a new event stream (listener) for a given object type.

Parameters:
  • object_type – Given object type

  • live_event_stream – Live event stream

append(event: Dict[str, Any])[source]#

Flattens an OCEL among all the available object types, and send its flattening to each corresponding event stream.

Parameters:

event – OCEL event (obtained for example using the ocel_iterator)