pm4py.algo.filtering.ocel.activity_type_matching module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- class pm4py.algo.filtering.ocel.activity_type_matching.Parameters(*values)[source]#
Bases:
Enum- ACTIVITY_KEY = 'pm4py:param:activity_key'#
- OBJECT_TYPE = 'param:object:type'#
- TEMP_COLUMN = 'temp_column'#
- TEMP_SEPARATOR = 'temp_separator'#
- pm4py.algo.filtering.ocel.activity_type_matching.apply(ocel: OCEL, correspondence_dict: Dict[str, Collection[str]], parameters: Dict[Any, Any] | None = None) OCEL[source]#
Filters an object-centric event log keeping only the specified object types with the specified activity set (filters out the rest).
- Parameters:
ocel – Object-centric event log
correspondence_dict – Dictionary containing, for every object type of interest, a collection of allowed activities. Example:
{“order”: [“Create Order”], “element”: [“Create Order”, “Create Delivery”]}
Keeps only the object types “order” and “element”. For the “order” object type, only the activity “Create Order” is kept. For the “element” object type, only the activities “Create Order” and “Create Delivery” are kept.
parameters –
- Parameters of the algorithm, including:
Parameters.ACTIVITY_KEY => the activity key
Parameters.OBJECT_TYPE => the object type column
- Returns:
Filtered object-centric event log
- Return type:
filtered_ocel