pm4py.objects.conversion.bpmn.variants package

Submodules

pm4py.objects.conversion.bpmn.variants.to_petri_net module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.objects.conversion.bpmn.variants.to_petri_net.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

USE_ID = 'use_id'
pm4py.objects.conversion.bpmn.variants.to_petri_net.apply(bpmn_graph, parameters=None)[source]

Converts a BPMN graph to an accepting Petri net

Parameters
  • bpmn_graph – BPMN graph

  • parameters – Parameters of the algorithm

Returns

  • net – Petri net

  • im – Initial marking

  • fm – Final marking

pm4py.objects.conversion.bpmn.variants.to_petri_net.build_digraph_from_petri_net(net)[source]
Builds a directed graph from a Petri net

(for the purpose to add invisibles between inclusive gateways)

Parameters

net – Petri net

Returns

Digraph

Return type

digraph

Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.