flatten_ocel_on
core::event_data::object_centric::utils::flattenSourceFlatten an OCEL on a specific object type, resulting in a case-centric Event Log
For each object of the specified type, a trace is created containing all events related to that object,
ordered by their timestamp.
For each object of the specified type, a trace is created containing all events related to that object,
ordered by their timestamp.
SlimLinkedOCELrequired
Stringrequired
Option<String>Store the result under this id instead of a generated one.
import r4pm
# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
log = r4pm.bindings.flatten_ocel_on(ocel, 'order')
# Also: .xes.gz, .json
r4pm.export_item(log, 'log.xes')process_mining/src/core/event_data/object_centric/utils/flatten.rs:14