 extension ViewControllerBatch: GetNewBatchTask {
 
     func getbatchtaskObject() -> ExecuteBatch? {
-        return self.batchTask
+        return self.executebatch
     }
 }
 
 extension ViewControllerBatch: ReportonandhaltonError {
     func reportandhaltonerror() {
         self.abort()
-        self.batchTask?.closeOperation()
-        self.batchTask = nil
+        self.executebatch?.closeOperation()
+        self.executebatch = nil
         self.estimatingbatchlabel.stringValue = "Error"
         self.estimatingbatchlabel.textColor = setcolor(nsviewcontroller: self, color: .red)
     }

        self.configurations!.processtermination = .batchtask
        self.batchisrunning = true
        self.estimatingbatchlabel.isHidden = true
        self.batchTask!.executeBatch()
        self.executeButton.isEnabled = false
    }


        if self.batchisrunning == true || self.remoteinfotask?.stackoftasktobeestimated != nil {
            self.abort()
        }
        self.executebatch!.closeOperation()
        self.executebatch = nil
        self.dismissview(viewcontroller: self, vcontroller: .vctabmain)
    }

