Gianpaolo Coro 2017-07-11 10:34:48 +00:00
parent cd00157ca3
commit bcdad87778
1 changed files with 4 additions and 0 deletions

View File

@ -140,12 +140,16 @@ public class WPSJobManager {
else if (result.contains(GenericWorker.TASK_SUCCESS))
success = true;
else if (result.contains("<wps:ProcessAccepted>Process Accepted</wps:ProcessAccepted>")) {
if (result.contains("<ows:Exception ")) {
failure = true;
}else{
statusLocation = result.substring(result.indexOf("statusLocation=") + "statusLocation=".length());
statusLocation = statusLocation.substring(0, statusLocation.indexOf(">"));
statusLocation = statusLocation.replace("\"", "");
statusLocation = statusLocation + "&gcube-token=" + token;
// AnalysisLogger.getLogger().debug("Status Location: " + statusLocation);
result= "";
}
} else {
Thread.sleep(pollingTime);
taskTimeCounter+=pollingTime;