@staticmethod<EOL><INDENT>def import_event_definition_elements(diagram_graph, element, event_definitions):<DEDENT>
element_id = element.getAttribute(consts.Consts.id)<EOL>event_def_list = []<EOL>for definition_type in event_definitions:<EOL><INDENT>event_def_xml = element.getElementsByTagNameNS("<STR_LIT:*>", definition_type)<EOL>for index in range(len(event_def_xml)):<EOL><INDENT>event_def_tmp = {consts.Consts.id: event_def_xml[index].getAttribute(consts.Consts.id),<EOL>consts.Consts.definition_type: definition_type}<EOL>event_def_list.append(event_def_tmp)<EOL><DEDENT><DEDENT>diagram_graph.node[element_id][consts.Consts.event_definitions] = event_def_list<EOL>
Helper function, that adds event definition elements (defines special types of events) to corresponding events.

:param diagram_graph: NetworkX graph representing a BPMN process diagram,
:param element: object representing a BPMN XML event element,
:param event_definitions: list of event definitions, that belongs to given event.