Function which setting flow in the connection created.