pm4py.objects.process_tree package

Submodules

pm4py.objects.process_tree.bottomup module

pm4py.objects.process_tree.obj module

class pm4py.objects.process_tree.obj.Operator(value)[source]

Bases: enum.Enum

An enumeration.

LOOP = '*'
OR = 'O'

SEQUENCE = u’→’ XOR = u’×’ PARALLEL = u’+’ LOOP = u’⟲’

PARALLEL = '+'
SEQUENCE = '->'
XOR = 'X'
class pm4py.objects.process_tree.obj.ProcessTree(operator=None, parent=None, children=None, label=None)[source]

Bases: object

class OperatorState(value)[source]

Bases: enum.Enum

An enumeration.

CLOSED = 'closed'
ENABLED = 'enabled'
FUTURE = 'future'
OPEN = 'open'
property children
property label
property operator
property parent

pm4py.objects.process_tree.process_tree module

pm4py.objects.process_tree.pt_operator module

pm4py.objects.process_tree.regex module

pm4py.objects.process_tree.semantics module

class pm4py.objects.process_tree.semantics.GenerationTree(tree)[source]

Bases: pm4py.objects.process_tree.obj.ProcessTree

pm4py.objects.process_tree.semantics.close(vertex, enabled, open, closed, execution_sequence)[source]

Close a given vertex of the process tree

Parameters
  • vertex – Vertex to be closed

  • enabled – Set of enabled nodes

  • open – Set of open nodes

  • closed – Set of closed nodes

  • execution_sequence – Execution sequence on the process tree

pm4py.objects.process_tree.semantics.execute(pt)[source]

Execute the process tree, returning an execution sequence

Parameters

pt – Process tree

Returns

Execution sequence on the process tree

Return type

exec_sequence

pm4py.objects.process_tree.semantics.execute_enabled(enabled, open, closed, execution_sequence=None)[source]

Execute an enabled node of the process tree

Parameters
  • enabled – Enabled nodes

  • open – Open nodes

  • closed – Closed nodes

  • execution_sequence – Execution sequence

Returns

Execution sequence

Return type

execution_sequence

pm4py.objects.process_tree.semantics.generate_log(pt0, no_traces=100)[source]

Generate a log out of a process tree

Parameters
  • pt – Process tree

  • no_traces – Number of traces contained in the process tree

Returns

Trace log object

Return type

log

pm4py.objects.process_tree.semantics.populate_closed(nodes, closed)[source]

Populate all closed nodes of a process tree

Parameters
  • nodes – Considered nodes of the process tree

  • closed – Closed nodes

pm4py.objects.process_tree.semantics.process_closed(closed_node, enabled, open, closed, execution_sequence)[source]

Process a closed node, deciding further operations

Parameters
  • closed_node – Node that shall be closed

  • enabled – Set of enabled nodes

  • open – Set of open nodes

  • closed – Set of closed nodes

  • execution_sequence – Execution sequence on the process tree

pm4py.objects.process_tree.semantics.should_close(vertex, closed, child)[source]

Decides if a parent vertex shall be closed based on the processed child

Parameters
  • vertex – Vertex of the process tree

  • closed – Set of closed nodes

  • child – Processed child

Returns

Boolean value (the vertex shall be closed)

Return type

boolean

pm4py.objects.process_tree.state module

class pm4py.objects.process_tree.state.State(value)[source]

Bases: enum.Enum

An enumeration.

CLOSED = 1
ENABLED = 2
OPEN = 3

pm4py.objects.process_tree.util module

Module contents