ocpa.objects.log.importer.ocel package

Subpackages

Submodules

ocpa.objects.log.importer.ocel.factory module

ocpa.objects.log.importer.ocel.factory.apply(file_path, variant='ocel_json', parameters=None, file_path_object_attribute_table=None) ocpa.objects.log.ocel.OCEL

Reads a jsonocel or jsonxml and transforms it into an OCEL object.

Parameters
  • file_path (string) – Path to the jsonocel or jsonxml file.

  • variant (string) – Method to import OCEL (default = OCEL_JSON)

  • parameters (dict) –

    parameters that will be used for importing the log and for log settings:
    • execution_extraction: Optional, execution extraction technique to extract process executions (cases) in the log, possible values:
      • ocpa.algo.util.process_executions.factory.CONN_COMP (default)

      • ocpa.algo.util.process_executions.factory.LEAD_TYPE

    • variant_calculation: Optional, variant calculation technique to determine variants in the log, possible values:
      • ocpa.algo.util.variants.factory.TWO_PHASE (default)

      • ocpa.algo.util.variants.factory.ONE_PHASE

    • timeout: Optional, seconds until variant calculation timeout.

    • leading_type: Optional, only used when execution_extraction=ocpa.algo.util.process_executions.factory.LEAD_TYPE, determines the leading type of the object types

    • exact_variant_calculation: Optional, boolean value for switching on the refinement of initial classes in the two-phase variant calculation. False (default) will most likely provide an approximation.

Returns

Return type

OCEL

ocpa.objects.log.importer.ocel.parameters module

class ocpa.objects.log.importer.ocel.parameters.CsvParseParameters(obj_names, val_names, time_name, act_name, vmap_params, vmap_availables)

Bases: object

act_name: str
obj_names: List[str]
time_name: str
val_names: List[str]
class ocpa.objects.log.importer.ocel.parameters.JsonParseParameters

Bases: object

event_params: Dict[str, str]
log_params: Dict[str, str]
obj_params: Dict[str, str]

Module contents