pm4py.visualization.powl package#

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

Subpackages#

Submodules#

pm4py.visualization.powl.visualizer module#

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

class pm4py.visualization.powl.visualizer.POWLVisualizationVariants(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

BASIC = <module 'pm4py.visualization.powl.variants.basic' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\visualization\\powl\\variants\\basic.py'>#
NET = <module 'pm4py.visualization.powl.variants.net' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\visualization\\powl\\variants\\net.py'>#
class pm4py.visualization.powl.visualizer.Parameters(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

FORMAT = 'format'#
ENCODING = 'encoding'#
pm4py.visualization.powl.visualizer.apply(powl: POWL, variant=POWLVisualizationVariants.BASIC, frequency_tags=True, parameters: Dict[Any, Any] | None = None) str[source]#

Method for POWL model representation

Parameters#

powl

POWL model

parameters
Possible parameters of the algorithm:

Parameters.FORMAT -> Format of the image (PDF, PNG, SVG; default PNG)

variant
Variant of the algorithm to use:
  • POWLVisualizationVariants.BASIC (default)

  • POWLVisualizationVariants.NET: BPMN-like visualization with decision gates

frequency_tags

Simplify the visualization using frequency tags

Returns#

str

SVG Content

pm4py.visualization.powl.visualizer.save(svg_content: str, output_file_path: str, parameters: Dict[Any, Any] | None = None)[source]#

Save the diagram in a specified format.

Parameters#

svg_contentstr

SVG content

output_file_pathstr

Path where the output file should be saved

pm4py.visualization.powl.visualizer.view(svg_content: str, parameters: Dict[Any, Any] | None = None)[source]#

View the diagram

Parameters#

svg_content

SVG content

image_format

image format