         weak var localprocessupdateDelegate: UpdateProgress?
         localprocessupdateDelegate = ViewControllerReference.shared.getvcref(viewcontroller: .vcbatch) as? ViewControllerBatch
         localprocessupdateDelegate?.processTermination()
-        if let batchobject = self.configurations!.getbatchQueue() {
+        if let batchobject = self.batchqueue {
             let work = batchobject.removenexttaskinqueue()
             let index = self.configurations!.getIndex(work.0)
             let config = self.configurations!.getConfigurations()[index]

    var process: Process?
    var outputprocess: OutputProcess?
    var hiddenID: Int?
    var estimatedlist: [NSDictionary]?

    func executebatch() {
        self.estimatedlist = self.configurations?.estimatedlist
        if let batchobject = self.configurations!.getbatchQueue() {
            let work = batchobject.copyofnexttaskinqueue()
            switch work.1 {
            case 1:

    }

    func maxcountintask(hiddenID: Int) -> Int {
        let max = self.estimatedlist?.filter({$0.value( forKey: "hiddenID") as? Int == hiddenID})
        guard max?.count ?? 0 > 0 else { return 0}
        let maxnumber = max![0].value(forKey: "transferredNumber") as? String ?? "0"
        return Int(maxnumber) ?? 0
    }

    init() {
        self.estimatedlist = self.configurations?.estimatedlist
        self.batchqueue = self.configurations!.getbatchQueue()
    }
}

