pm4py.objects.powl.parser module#
- pm4py.objects.powl.parser.parse_powl_model_string(powl_string, level=0) POWL[source]#
Parse a POWL model from a string representation of the process model (with the same format as the __repr__ and __str__ methods of the POWL model)
Minimum Viable Example:
from pm4py.objects.powl.parser import parse_powl_model_string
powl_model = parse_powl_model_string(‘PO=(nodes={ NODE1, NODE2, NODE3 }, order={ NODE1–>NODE2 }’) print(powl_model)
- Parameters:
powl_string – POWL model expressed as a string (__repr__ of the POWL model)
- Returns:
POWL model
- Return type:
powl_model