pm4py.objects.conversion.bpmn.variants package

Submodules

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

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