def processAlgorithm(self, progress): postString = self.defineProcess() qDebug(postString) self.wps = ExecutionResult(self.getLiteralResult, self.getResultFile, self.errorResult, None) self.wps.executeProcess(self.process.processUrl, postString) #Wait for answer while not self.wps.finished(): qApp.processEvents()