def add_edge(from_node_id, to_node_id, process_dict, bpmn_diagram, sequence_flows):
condition = get_connection_condition_if_present(to_node_id, process_dict)<EOL>bpmn_diagram.diagram_graph.add_edge(from_node_id, to_node_id)<EOL>flow_id = get_flow_id(from_node_id, to_node_id)<EOL>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.id] = flow_id<EOL>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.process] = default_process_id<EOL>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.name] = "<STR_LIT>"<EOL>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.source_ref] = from_node_id<EOL>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.target_ref] = to_node_id<EOL>if bool(condition):<EOL><INDENT>bpmn_diagram.diagram_graph[from_node_id][to_node_id][consts.Consts.condition_expression] = {<EOL>consts.Consts.id: flow_id + "<STR_LIT>",<EOL>consts.Consts.condition_expression: condition<EOL>}<EOL><DEDENT>sequence_flows[flow_id] = {consts.Consts.name: flow_id, consts.Consts.source_ref: from_node_id,<EOL>consts.Consts.target_ref: to_node_id}<EOL>
:param from_node_id:
:param to_node_id:
:param process_dict:
:param bpmn_diagram:
:param sequence_flows: