pm4py.visualization.bpmn.variants.dagrejs module#

class pm4py.visualization.bpmn.variants.dagrejs.Parameters(*values)[source]#

Bases: Enum

ENCODING = 'encoding'#
IFRAME_WIDTH = 'iframe_width'#
IFRAME_HEIGHT = 'iframe_height'#
LOCAL_JUPYTER_FILE_NAME = 'local_jupyter_file_name'#
pm4py.visualization.bpmn.variants.dagrejs.get_html_file_contents()[source]#
pm4py.visualization.bpmn.variants.dagrejs.apply(bpmn_graph: BPMN, parameters: Dict[Any, Any] | None = None) str[source]#

Visualizes a BPMN graph by rendering it inside a HTML/Javascript file

Parameters:
  • bpmn_graph – BPMN graph

  • parameters – Parameters of the algorithm, including: - Parameters.ENCODING => the encoding of the HTML to be used

Returns:

Path to the HTML file

Return type:

tmp_file_path

pm4py.visualization.bpmn.variants.dagrejs.view(temp_file_name, parameters=None)[source]#

View the SNA visualization on the screen

Parameters:
  • temp_file_name – Temporary file name

  • parameters – Possible parameters of the algorithm

pm4py.visualization.bpmn.variants.dagrejs.save(temp_file_name, dest_file, parameters=None)[source]#

Save the SNA visualization from a temporary file to a well-defined destination file

Parameters:
  • temp_file_name – Temporary file name

  • dest_file – Destination file

  • parameters – Possible parameters of the algorithm