@staticmethod<EOL><INDENT>def export_node_data(bpmn_diagram, process_id, params, process):<DEDENT>
node_type = params[consts.Consts.type]<EOL>output_element = eTree.SubElement(process, node_type)<EOL>output_element.set(consts.Consts.id, process_id)<EOL>output_element.set(consts.Consts.name, params[consts.Consts.node_name])<EOL>for incoming in params[consts.Consts.incoming_flow]:<EOL><INDENT>incoming_element = eTree.SubElement(output_element, consts.Consts.incoming_flow)<EOL>incoming_element.text = incoming<EOL><DEDENT>for outgoing in params[consts.Consts.outgoing_flow]:<EOL><INDENT>outgoing_element = eTree.SubElement(output_element, consts.Consts.outgoing_flow)<EOL>outgoing_element.text = outgoing<EOL><DEDENT>if node_type == consts.Consts.taskor node_type == consts.Consts.user_taskor node_type == consts.Consts.service_taskor node_type == consts.Consts.manual_task:<EOL><INDENT>BpmnDiagramGraphExport.export_task_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.subprocess:<EOL><INDENT>BpmnDiagramGraphExport.export_subprocess_info(bpmn_diagram, params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.data_object:<EOL><INDENT>BpmnDiagramGraphExport.export_data_object_info(bpmn_diagram, params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.complex_gateway:<EOL><INDENT>BpmnDiagramGraphExport.export_complex_gateway_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.event_based_gateway:<EOL><INDENT>BpmnDiagramGraphExport.export_event_based_gateway_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.inclusive_gateway or node_type == consts.Consts.exclusive_gateway:<EOL><INDENT>BpmnDiagramGraphExport.export_inclusive_exclusive_gateway_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.parallel_gateway:<EOL><INDENT>BpmnDiagramGraphExport.export_parallel_gateway_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.start_event:<EOL><INDENT>BpmnDiagramGraphExport.export_start_event_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.intermediate_catch_event:<EOL><INDENT>BpmnDiagramGraphExport.export_catch_event_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.end_event or node_type == consts.Consts.intermediate_throw_event:<EOL><INDENT>BpmnDiagramGraphExport.export_throw_event_info(params, output_element)<EOL><DEDENT>elif node_type == consts.Consts.boundary_event:<EOL><INDENT>BpmnDiagramGraphExport.export_boundary_event_info(params, output_element)<EOL><DEDENT>
Creates a new XML element (depends on node type) for given node parameters and adds it to 'process' element.

:param bpmn_diagram: BPMNDiagramGraph class instantion representing a BPMN process diagram,
:param process_id: string representing ID of given flow node,
:param params: dictionary with node parameters,
:param process: object of Element class, representing BPMN XML 'process' element (root for nodes).