def add_event_definition_element(event_type, event_definitions):
        """
        Helper function, that creates event definition element (special type of event) from given parameters.

        :param event_type: string object. Short name of required event definition,
        :param event_definitions: dictionary of event definitions. Key is a short name of event definition,
           value is a full name of event definition, as defined in BPMN 2.0 XML Schema.
        """
        event_def_id = BpmnDiagramGraph.id_prefix + str(uuid.uuid4())
        event_def = {consts.Consts.id: event_def_id, consts.Consts.definition_type: event_definitions[event_type]}
        return event_def
def add_event_definition_element ( event_type , event_definitions ) : event_def_id = BpmnDiagramGraph . id_prefix + str ( uuid . uuid4 ( ) ) event_def = { consts . Consts . id : event_def_id , consts . Consts . definition_type : event_definitions [ event_type ] } return event_def
Helper function, that creates event definition element (special type of event) from given parameters.

        :param event_type: string object. Short name of required event definition,
        :param event_definitions: dictionary of event definitions. Key is a short name of event definition,
           value is a full name of event definition, as defined in BPMN 2.0 XML Schema.