pm4py.utils.parse_powl_model_string#
- pm4py.utils.parse_powl_model_string(powl_string: str) 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)
- Parameters:
powl_string (
str
) – POWL model expressed as a string (__repr__ of the POWL model)- Return type:
POWL
import pm4py powl_model = pm4py.parse_powl_model_string('PO=(nodes={ NODE1, NODE2, NODE3 }, order={ NODE1-->NODE2 }') print(powl_model)
Parameters#
powl_string
Returns#