pm4py.utils.parse_process_tree#
- pm4py.utils.parse_process_tree(tree_string: str) ProcessTree [source]#
Parse a process tree from a string
- Parameters:
tree_string (
str
) – String representing a process tree (e.g. ‘-> ( ‘A’, O ( ‘B’, ‘C’ ), ‘D’ )’). Operators are ‘->’: sequence, ‘+’: parallel, ‘X’: xor choice, ‘*’: binary loop, ‘O’ or choice- Return type:
ProcessTree
import pm4py process_tree = pm4py.parse_process_tree('-> ( 'A', O ( 'B', 'C' ), 'D' )')