}
else
{
- wsInfo.setProgressText(OutputHeader + "\n" + result.getStatus());
+ if (result.getStatus()!=null)
+ wsInfo.setProgressText(OutputHeader + "\n" + result.getStatus());
if (! (result.isJobFailed() || result.isServerError()))
{
Thread.sleep(5000);
// System.out.println("I'm alive "+seqid+" "+jobid);
+ } else {
+ break;
}
}
}
ex.printStackTrace();
}
}
-
- if (! (result!=null && (result.isJobFailed() || result.isServerError())))
- wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_OK);
- else
+ if (allowedServerExceptions==0) {
wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
- }
+ } else {
+ if (! (result!=null && (result.isJobFailed() || result.isServerError())))
+ wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_OK);
+ else {
+ if (result.isJobFailed()
+
+ wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
+ }
void StartJob()
{