pm4py.objects.dcr.hierarchical package#

Submodules#

pm4py.objects.dcr.hierarchical.obj module#

This module extends the MilestoneNoResponseDcrGraph class to include support for nested groups and subprocesses within Dynamic Condition Response (DCR) Graphs.

The module adds functionality to handle hierarchical structures in DCR Graphs, allowing for more complex process models with nested elements and subprocesses.

Classes:

NestingSubprocessDcrGraph: Extends MilestoneNoResponseDcrGraph to include nested groups and subprocesses.

This class provides methods to manage and manipulate nested groups and subprocesses within a DCR Graph, enhancing the model’s ability to represent complex organizational structures and process hierarchies.

References#

class pm4py.objects.dcr.hierarchical.obj.HierarchicalDcrGraph(template=None)[source]#

Bases: ExtendedDcrGraph

This class extends the MilestoneNoResponseDcrGraph to include nested groups and subprocesses, allowing for more complex hierarchical structures in DCR Graphs.

Attributes#

self.__nestedgroups: Dict[str, Set[str]]

A dictionary mapping group names to sets of event IDs within each group.

self.__subprocesses: Dict[str, Set[str]]

A dictionary mapping subprocess names to sets of event IDs within each subprocess.

self.__nestedgroups_map: Dict[str, str]

A dictionary mapping event IDs to their corresponding group names.

Methods#

obj_to_template(self) -> dict:

Converts the object to a template dictionary, including nested groups and subprocesses.

obj_to_template()[source]#
property nestedgroups: Dict[str, Set[str]]#
property nestedgroups_map: Dict[str, str]#
property subprocesses: Dict[str, Set[str]]#

Module contents#