@staticmethod<EOL><INDENT>def export_end_event(export_elements, node, order=<NUM_LIT:0>, prefix="<STR_LIT>", condition="<STR_LIT>", who="<STR_LIT>"):<DEDENT>
<EOL>event_definitions = node[<NUM_LIT:1>].get(consts.Consts.event_definitions)<EOL>if event_definitions is not None and len(event_definitions) > <NUM_LIT:0>:<EOL><INDENT>event_definition = node[<NUM_LIT:1>][consts.Consts.event_definitions][<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>event_definition = None<EOL><DEDENT>if event_definition is None:<EOL><INDENT>activity = node[<NUM_LIT:1>][consts.Consts.node_name]<EOL><DEDENT>elif event_definition[consts.Consts.definition_type] == "<STR_LIT>":<EOL><INDENT>activity = "<STR_LIT>" + node[<NUM_LIT:1>][consts.Consts.node_name]<EOL><DEDENT>else:<EOL><INDENT>activity = node[<NUM_LIT:1>][consts.Consts.node_name]<EOL><DEDENT>export_elements.append({"<STR_LIT>": prefix + str(order), "<STR_LIT>": activity, "<STR_LIT>": condition, "<STR_LIT>": who,<EOL>"<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT:yes>"})<EOL>return None<EOL>
End event export

:param export_elements: a dictionary object. The key is a node ID, value is a dictionary of parameters that
       will be used in exported CSV document,
:param node: networkx.Node object,
:param order: the order param of exported node,
:param prefix: the prefix of exported node - if the task appears after some gateway, the prefix will identify
       the branch
:param condition: the condition param of exported node,
:param who: the condition param of exported node,
:return: None or the next node object if the exported node was a gateway join.