These are the values that you need to know about the process statuses.
PROCESS_INSTANCE_INITIATED = 0;
PROCESS_INSTANCE_RUNNING = 1;
PROCESS_INSTANCE_COMPLETE = 2;
PROCESS_INSTANCE_COMPLETING = 3;
PROCESS_INSTANCE_SUSPENDED = 6;
PROCESS_INSTANCE_SUSPENDING = 7;
PROCESS_INSTANCE_UNSUSPENDING = 8;
PROCESS_INSTANCE_TERMINATED = 4;
PROCESS_INSTANCE_TERMINATING = 5;
hope it helps.
Hmmm....while my process is running, I am getting statuscode values of "2". Could there be different values coming out of the web service?
Could you check what the value is for the process that actually has completed?
I get a "3" when it has completed.
Good news!!! I figured out what's happening.
The codes that I posted were related to the Process. They are process status codes.
What you are looking for is related to the Job. So here are the job status codes.
JOB_STATUS_UNKNOWN = 0 (default)
JOB_STATUS_QUEUED = 1
Thats exactly what I needed, Parth. Thanks!