def add_flow_node_to_diagram(self, process_id, node_type, name, node_id=None):
if node_id is None:<EOL><INDENT>node_id = BpmnDiagramGraph.id_prefix + str(uuid.uuid4())<EOL><DEDENT>self.diagram_graph.add_node(node_id)<EOL>self.diagram_graph.node[node_id][consts.Consts.id] = node_id<EOL>self.diagram_graph.node[node_id][consts.Consts.type] = node_type<EOL>self.diagram_graph.node[node_id][consts.Consts.node_name] = name<EOL>self.diagram_graph.node[node_id][consts.Consts.incoming_flow] = []<EOL>self.diagram_graph.node[node_id][consts.Consts.outgoing_flow] = []<EOL>self.diagram_graph.node[node_id][consts.Consts.process] = process_id<EOL>self.diagram_graph.node[node_id][consts.Consts.width] = "<STR_LIT:100>"<EOL>self.diagram_graph.node[node_id][consts.Consts.height] = "<STR_LIT:100>"<EOL>self.diagram_graph.node[node_id][consts.Consts.x] = "<STR_LIT:100>"<EOL>self.diagram_graph.node[node_id][consts.Consts.y] = "<STR_LIT:100>"<EOL>return node_id, self.diagram_graph.node[node_id]<EOL>
Helper function that adds a new Flow Node to diagram. It is used to add a new node of specified type.
Adds a basic information inherited from Flow Node type.

:param process_id: string object. ID of parent process,
:param node_type: string object. Represents type of BPMN node passed to method,
:param name: string object. Name of the node,
:param node_id: string object. ID of node. Default value - None.