 
     init() {
         self.outputbatch = nil
+        self.taskDelegate = ViewControllerReference.shared.getvcref(viewcontroller: .vctabmain) as? ViewControllertabMain
     }
 
 }

                self.outputbatch = OutputBatch()
            }
            let work = batchobject.nextBatchRemove()
            // Set date on Configuration
            let index = self.configurations!.getIndex(work.0)
            let config = self.configurations!.getConfigurations()[index]
            self.hiddenID = config.hiddenID
            self.configurations!.setCurrentDateonConfigurationSingletask(index: index, outputprocess: self.outputprocess)
            var result: String?
            if config.offsiteServer.isEmpty {

                result = config.localCatalog + " , " + config.offsiteServer
            }
            self.outputbatch!.addLine(str: result!)
            self.delayWithSeconds(1) {
                self.executeBatch()
            }
        }
