def export_lane(parent_xml_element, lane_id, lane_attr, plane_element):
        """
        Creates 'lane' element for exported BPMN XML file.

        :param parent_xml_element: an XML element, parent of exported 'lane' element,
        :param lane_id: string object. ID of exported lane element,
        :param lane_attr: dictionary with lane element attributes,
        :param plane_element: XML object, representing 'plane' element of exported BPMN 2.0 XML.
        """
        lane_xml = eTree.SubElement(parent_xml_element, consts.Consts.lane)
        lane_xml.set(consts.Consts.id, lane_id)
        lane_xml.set(consts.Consts.name, lane_attr[consts.Consts.name])
        if consts.Consts.child_lane_set in lane_attr and len(lane_attr[consts.Consts.child_lane_set]):
            child_lane_set = lane_attr[consts.Consts.child_lane_set]
            BpmnDiagramGraphExport.export_child_lane_set(lane_xml, child_lane_set, plane_element)
        if consts.Consts.flow_node_refs in lane_attr and len(lane_attr[consts.Consts.flow_node_refs]):
            for flow_node_ref_id in lane_attr[consts.Consts.flow_node_refs]:
                flow_node_ref_xml = eTree.SubElement(lane_xml, consts.Consts.flow_node_ref)
                flow_node_ref_xml.text = flow_node_ref_id

        output_element_di = eTree.SubElement(plane_element, BpmnDiagramGraphExport.bpmndi_namespace +
                                             consts.Consts.bpmn_shape)
        output_element_di.set(consts.Consts.id, lane_id + "_gui")

        output_element_di.set(consts.Consts.bpmn_element, lane_id)
        output_element_di.set(consts.Consts.is_horizontal, lane_attr[consts.Consts.is_horizontal])
        bounds = eTree.SubElement(output_element_di, "omgdc:Bounds")
        bounds.set(consts.Consts.width, lane_attr[consts.Consts.width])
        bounds.set(consts.Consts.height, lane_attr[consts.Consts.height])
        bounds.set(consts.Consts.x, lane_attr[consts.Consts.x])
        bounds.set(consts.Consts.y, lane_attr[consts.Consts.y])
def export_lane ( parent_xml_element , lane_id , lane_attr , plane_element ) : lane_xml = eTree . SubElement ( parent_xml_element , consts . Consts . lane ) lane_xml . set ( consts . Consts . id , lane_id ) lane_xml . set ( consts . Consts . name , lane_attr [ consts . Consts . name ] ) if consts . Consts . child_lane_set in lane_attr and len ( lane_attr [ consts . Consts . child_lane_set ] ) : child_lane_set = lane_attr [ consts . Consts . child_lane_set ] BpmnDiagramGraphExport . export_child_lane_set ( lane_xml , child_lane_set , plane_element ) if consts . Consts . flow_node_refs in lane_attr and len ( lane_attr [ consts . Consts . flow_node_refs ] ) : for flow_node_ref_id in lane_attr [ consts . Consts . flow_node_refs ] : flow_node_ref_xml = eTree . SubElement ( lane_xml , consts . Consts . flow_node_ref ) flow_node_ref_xml . text = flow_node_ref_id output_element_di = eTree . SubElement ( plane_element , BpmnDiagramGraphExport . bpmndi_namespace + consts . Consts . bpmn_shape ) output_element_di . set ( consts . Consts . id , lane_id + "_gui" ) output_element_di . set ( consts . Consts . bpmn_element , lane_id ) output_element_di . set ( consts . Consts . is_horizontal , lane_attr [ consts . Consts . is_horizontal ] ) bounds = eTree . SubElement ( output_element_di , "omgdc:Bounds" ) bounds . set ( consts . Consts . width , lane_attr [ consts . Consts . width ] ) bounds . set ( consts . Consts . height , lane_attr [ consts . Consts . height ] ) bounds . set ( consts . Consts . x , lane_attr [ consts . Consts . x ] ) bounds . set ( consts . Consts . y , lane_attr [ consts . Consts . y ] )
Creates 'lane' element for exported BPMN XML file.

        :param parent_xml_element: an XML element, parent of exported 'lane' element,
        :param lane_id: string object. ID of exported lane element,
        :param lane_attr: dictionary with lane element attributes,
        :param plane_element: XML object, representing 'plane' element of exported BPMN 2.0 XML.