@staticmethod<EOL><INDENT>def export_subprocess_info(bpmn_diagram, subprocess_params, output_element):<DEDENT>
output_element.set(consts.Consts.triggered_by_event, subprocess_params[consts.Consts.triggered_by_event])<EOL>if consts.Consts.default in subprocess_params and subprocess_params[consts.Consts.default] is not None:<EOL><INDENT>output_element.set(consts.Consts.default, subprocess_params[consts.Consts.default])<EOL><DEDENT>subprocess_id = subprocess_params[consts.Consts.id]<EOL>nodes = bpmn_diagram.get_nodes_list_by_process_id(subprocess_id)<EOL>for node in nodes:<EOL><INDENT>node_id = node[<NUM_LIT:0>]<EOL>params = node[<NUM_LIT:1>]<EOL>BpmnDiagramGraphExport.export_node_data(bpmn_diagram, node_id, params, output_element)<EOL><DEDENT>flows = bpmn_diagram.get_flows_list_by_process_id(subprocess_id)<EOL>for flow in flows:<EOL><INDENT>params = flow[<NUM_LIT:2>]<EOL>BpmnDiagramGraphExport.export_flow_process_data(params, output_element)<EOL><DEDENT>
Adds Subprocess node attributes to exported XML element

:param bpmn_diagram: BPMNDiagramGraph class instantion representing a BPMN process diagram,
:param subprocess_params: dictionary with given subprocess parameters,
:param output_element: object representing BPMN XML 'subprocess' element.