Utils package

Submodules

sax.core.utils.constants module

class sax.core.utils.constants.Constants(*args, **kwargs)

Bases: object

ACTIVITY_KEY = 'concept:name'
CASE_ID_KEY = 'case:concept:name'
CSV_SEPARATOR = ','
GROUP_KEY = 'Group'
RESOURCE_KEY = 'org:resource'
STARTTIME_COLUMN = 'start:timestamp'
START_BASE_COLUMN = 'start'
TIMESTAMP_FORMAT_KEY = 'TimestampFormat'
TIMESTAMP_KEY = 'time:timestamp'
TYPE_KEY = 'lifecycle:transition'
class sax.core.utils.constants.ConstantsMeta

Bases: type

class sax.core.utils.constants.LifecycleTypes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

ASSIGN = 'assign'
COMPLETE = 'complete'
START = 'start'

sax.core.utils.helper_utils module

sax.core.utils.helper_utils.add_start_time(df, timestamp_column_name, id_column_name, start_column_name)
sax.core.utils.helper_utils.convert_timestamp_columns_in_df(df, timest_format=None, timest_columns=None)
sax.core.utils.helper_utils.get_param_value(p, parameters, default)
sax.core.utils.helper_utils.get_properties(dataObject: BaseProcessDataObject, activity_key: str = 'concept:name', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name', resource_key: str = 'org:resource', group_key: str | None = None, timestamp_format: str | None = None, **kwargs)

Gets the properties from an event data object signifying the column names of the mandatory attributes, date formatter string, and additional attributes

Parameters:
  • dataObject -- data object

  • activity_key -- attribute to be used for the activity

  • timestamp_key -- attribute to be used for the timestamp

  • case_id_key -- attribute to be used as case identifier

  • resource_key -- (if provided) attribute to be used as resource

  • group_key -- (if provided) attribute to be used as group identifier

Return type:

Dict

sax.core.utils.helper_utils.unroll(value)

Module contents