Пример #1
0
 def test_loadCamundaComplexDiagram(self):
     """
     Test for importing a complex Camunda diagram example (as BPMN 2.0 XML) into inner representation
     and later exporting it to XML file
     """
     bpmn_graph = diagram.BpmnDiagramGraph()
     bpmn_graph.load_diagram_from_xml_file(os.path.abspath(self.example_path))
     bpmn_graph.export_xml_file(self.output_directory, self.output_file_with_di)
     bpmn_graph.export_xml_file_no_di(self.output_directory, self.output_file_no_di)
Пример #2
0
 def test_loadCamundaComplexDiagramAndVisualize(self):
     """
     Test for importing a complex Camunda diagram example (as BPMN 2.0 XML) into inner representation
     and later exporting it to XML file. Includes test for visualization functionality.
     """
     bpmn_graph = diagram.BpmnDiagramGraph()
     bpmn_graph.load_diagram_from_xml_file(os.path.abspath(self.example_path))
     # Uncomment line below to get a simple view of created diagram
     # visualizer.visualize_diagram(bpmn_graph)
     visualizer.bpmn_diagram_to_dot_file(bpmn_graph, self.output_directory + self.output_dot_file)
     visualizer.bpmn_diagram_to_png(bpmn_graph, self.output_directory + self.output_png_file)
     bpmn_graph.export_xml_file(self.output_directory, self.output_file_with_di)
     bpmn_graph.export_xml_file_no_di(self.output_directory, self.output_file_no_di)