Skip to content

Module: Task Identification

TaskIdentification

Create TaskIdentification module

Examples:

>>> from promg.modules.task_identification import TaskIdentification
>>> task_identifier = TaskIdentification(resource="Resource", case="CASE_AWO")
returns a task_identifier module from the perspective "Resource" and the "CASE_AWO" entities

identify_tasks()

Method to create (:TaskInstance) nodes and [:CONTAINS] from (:Event) nodes to (:TaskInstance) nodes

Examples:

>>> from promg.modules.task_identification import TaskIdentification
>>> task_identifier = TaskIdentification(resource="Resource", case="CASE_AWO")
>>> task_identifier.identify_tasks()
Identifies and creates (:TaskInstance) nodes for the given resource and case

aggregate_on_task_variant()

Method to aggregate (:TaskInstance) nodes into (:TaskAggregation) nodes

Examples:

>>> from promg.modules.task_identification import TaskIdentification
>>> task_identifier = TaskIdentification(resource="Resource", case="CASE_AWO")
>>> task_identifier.aggregate_on_task_variant()
Identifies and creates (:TaskAggegration) given there exists (:TaskInstance) nodes