pm4py.objects.log.util.interval_lifecycle module#
- class pm4py.objects.log.util.interval_lifecycle.Parameters(*values)[source]#
Bases:
Enum- TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
- START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'#
- TRANSITION_KEY = 'pm4py:param:transition_key'#
- ACTIVITY_KEY = 'pm4py:param:activity_key'#
- LIFECYCLE_INSTANCE_KEY = 'pm4py:param:lifecycle:instance:key'#
- BUSINESS_HOURS = 'business_hours'#
- BUSINESS_HOUR_SLOTS = 'business_hour_slots'#
- WORKCALENDAR = 'workcalendar'#
- pm4py.objects.log.util.interval_lifecycle.to_interval(log, parameters=None)[source]#
Converts a log to interval format (e.g. an event has two timestamps) from lifecycle format (an event has only a timestamp, and a transition lifecycle)
- Parameters:
log – Log (expressed in the lifecycle format)
parameters – Possible parameters of the method (activity, timestamp key, start timestamp key, transition …)
- Returns:
Interval event log
- Return type:
log
- pm4py.objects.log.util.interval_lifecycle.to_lifecycle(log, parameters=None)[source]#
Converts a log from interval format (e.g. an event has two timestamps) to lifecycle format (an event has only a timestamp, and a transition lifecycle)
- Parameters:
log – Log (expressed in the interval format)
parameters – Possible parameters of the method (activity, timestamp key, start timestamp key, transition …)
- Returns:
Lifecycle event log
- Return type:
log