filter_ocel_cc
Filter an object-centric event log by connected component using activity, object, object type, or component size strategies.
Instructions
Connected-component filtering — the OCEL-specific power feature.
Dispatches on strategy:
"activity"— keep events in the connected component containing any object touched by activityvalue(string).retainis ignored."object"— keep events in the connected component containing the object with idvalue(string).retainis ignored."otype"— filter by the connected component of an object type.valueis a string;retaincontrols keep-vs-drop."length"— keep CCs whose size is in[min, max].valueis a two-element integer list[min, max].retainis ignored.
PM4Py's CC filters are marked experimental; expect occasional edge-case failures on malformed OCELs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| retain | No | ||
| ocel_id | Yes | ||
| strategy | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||