backend/app/Http/Controllers/FlowController.php
/**
     * Removes all connections pointing to specified node id
     * 
     */
Removes all connections pointing to specified node id
Removes all connections pointing to specified node id
private function deleteConnectionToNodeId($nodes)
    {
        foreach ($nodes as $kn => $n) {
            foreach ($n->connections as $kc => $c) {
                if (isset($c->if)) {
                    if (!$this->getNodeById($c->if->then, $nodes)) {
                        $nodes[$kn]->connections[$kc]->if->then = 'end';
                    }
                }
            }
        }
    }
private function deleteConnectionToNodeId ( $ nodes ) { foreach ( $ nodes as $ kn => $ n ) { foreach ( $ n -> connections as $ kc => $ c ) { if ( isset ( $ c -> if ) ) { if ( ! $ this -> getNodeById ( $ c -> if -> then , $ nodes ) ) { $ nodes [ $ kn ] -> connections [ $ kc ] -> if -> then = 'end' ; } } } } }
Removes all connections pointing to specified node id
Removes all connections pointing to specified node id
//not found, delete connection