@staticmethod<EOL><INDENT>def import_process_elements(document, diagram_graph, sequence_flows, process_elements_dict, plane_element):<DEDENT>
for process_element in document.getElementsByTagNameNS("<STR_LIT:*>", consts.Consts.process):<EOL><INDENT>BpmnDiagramGraphImport.import_process_element(process_elements_dict, process_element)<EOL>process_id = process_element.getAttribute(consts.Consts.id)<EOL>process_attributes = process_elements_dict[process_id]<EOL>lane_set_list = process_element.getElementsByTagNameNS("<STR_LIT:*>", consts.Consts.lane_set)<EOL>if lane_set_list is not None and len(lane_set_list) > <NUM_LIT:0>:<EOL><INDENT>lane_set = lane_set_list[<NUM_LIT:0>]<EOL>BpmnDiagramGraphImport.import_lane_set_element(process_attributes, lane_set, plane_element)<EOL><DEDENT>for element in utils.BpmnImportUtils.iterate_elements(process_element):<EOL><INDENT>if element.nodeType != element.TEXT_NODE:<EOL><INDENT>tag_name = utils.BpmnImportUtils.remove_namespace_from_tag_name(element.tagName)<EOL>BpmnDiagramGraphImport.__import_element_by_tag_name(diagram_graph, sequence_flows, process_id,<EOL>process_attributes, element, tag_name)<EOL><DEDENT><DEDENT>for flow in utils.BpmnImportUtils.iterate_elements(process_element):<EOL><INDENT>if flow.nodeType != flow.TEXT_NODE:<EOL><INDENT>tag_name = utils.BpmnImportUtils.remove_namespace_from_tag_name(flow.tagName)<EOL>if tag_name == consts.Consts.sequence_flow:<EOL><INDENT>BpmnDiagramGraphImport.import_sequence_flow_to_graph(diagram_graph, sequence_flows, process_id,<EOL>flow)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Method for importing all 'process' elements in diagram.

:param document: XML document,
:param diagram_graph: NetworkX graph representing a BPMN process diagram,
:param sequence_flows: a list of sequence flows existing in diagram,
:param process_elements_dict: dictionary that holds attribute values for imported 'process' elements. Key is
    an ID of process, value - a dictionary of process attributes,
:param plane_element: object representing a BPMN XML 'plane' element.