pm4py.objects.ocel.exporter.jsonocel.variants.ocel20 module#

class pm4py.objects.ocel.exporter.jsonocel.variants.ocel20.Parameters(*values)[source]#

Bases: Enum

EVENT_ID = 'param:event:id'#
OBJECT_ID = 'param:object:id'#
OBJECT_TYPE = 'param:object:type'#
EVENT_ACTIVITY = 'param:event:activity'#
EVENT_TIMESTAMP = 'param:event:timestamp'#
ENCODING = 'encoding'#
pm4py.objects.ocel.exporter.jsonocel.variants.ocel20.get_enriched_object(ocel: OCEL, parameters: Dict[Any, Any] | None = None)[source]#
pm4py.objects.ocel.exporter.jsonocel.variants.ocel20.apply(ocel: OCEL, target_path: str, parameters: Dict[Any, Any] | None = None)[source]#

Exports an object-centric event log (OCEL 2.0) in a JSONOCEL 2.0 file, using the classic JSON dump

Parameters:
  • ocel – Object-centric event log

  • target_path – Destination path

  • parameters – Parameters of the algorithm, including: - Parameters.EVENT_ID => the event ID column - Parameters.OBJECT_ID => the object ID column - Parameters.OBJECT_TYPE => the object type column