public function processSetup() { set_time_limit(50000); // Get all Input send via AJAX to $rec $rec = Request::all(); // Inputs divided into four Categories - Filters, Type, Description and Other Informations $filters = $rec['filter']; $type = $rec['type']; $desc = $rec['description']; $db = $rec['database']; // Instantiate Neo4JConnector $neo = new Neo4JConnector('default', 'http', 'localhost', 7474, 'neo4j', 'aiscu'); if ($type == 'batch') { // Setup Batch Process, Save Batch Process Information to Neo4j and Formatting data for Displaying return $neo->setUpBatchProcess($filters, $desc, $db); } elseif ($type == 'preprocess') { // Save Preprocess Setting and Formatting data for Displaying // Note that Preprocess Settings will be retrieved when Scheduler is triggered! return $neo->setUpPreprocess($filters, $desc, $db); } else { // This condition should not be reachable. throw new \Exception("Invalid Process Setup"); } }