3 public enum WSJobStatus
5 /** Job has invalid parameters and cannot be started. */
7 /** Job is ready to be submitted. */
9 /** Job has been submitted and awaits processing. */
11 /** Job has been queued for execution. */
13 /** Job is running. */
15 /** Job has finished with no errors. */
17 /** Job has finished with errors. */
19 /** Job cannot be processed or completed due to server error. */
21 /** Job has been cancelled. */
23 /** Status cannot be determined. */
26 public boolean isSubmitted()
46 public boolean isCancelled()
48 return this == WSJobStatus.CANCELLED;
51 public boolean isDone()
71 public boolean isFailed()
91 public boolean isRunning()
93 return this == WSJobStatus.RUNNING;
96 public boolean isQueuing()
98 return this == WSJobStatus.SUBMITTED || this == WSJobStatus.QUEUED;
101 public boolean isCompleted()
103 return this == WSJobStatus.FINISHED;