Closed DigitalGabriele closed 6 months ago
I am running a soundness check on a simple BPMN model, by running the following code:
import pm4py bpmn_path = "diagram_5.bpmn" net, initial_marking, final_marking = pm4py.read_pnml(bpmn_path) is_sound = pm4py.check_soundness(net, initial_marking, final_marking)
The printed result for is_sound:
is_sound
(False, {<Outputs.DIAGNOSTIC_MESSAGES: 'diagnostic_messages'>: ['There is more than one initial or final marking.']})
The BPMN looks like:
What am I doing wrong?
Dear @DigitalGabriele
You should read the BPMN using pm4py.read_bpmn and convert it later to Petri net using pm4py.convert_to_petri_net
Thanks!
I am running a soundness check on a simple BPMN model, by running the following code:
The printed result for
is_sound
:The BPMN looks like:
What am I doing wrong?