StatusCode values for web service call?

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

06-08-2009

I am trying to check the status of a long-lived service using a web service call from a .NET application. I therefore don't have access to the java libraries where the StatusCode constants (enumerations?) are defined. Can someone either tell me a .NET library I can reference in order to use the constant values, or at least tell me what the integer values are, and I can make my own constants.

In case it wasn't cIear, I am using webservice_invokeStatus( jobId ).

Thanks,

Mike Gates

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

06-08-2009

Hi Mike,

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
JOB_STATUS_RUNNING=2
JOB_STATUS_COMPLETED=3
JOB_STATUS_FAILED=4
JOB_STATUS_TERMINATED=5
JOB_STATUS_SUSPENDED=6
JOB_STATUS_COMPLETE_REQUESTED=7
JOB_STATUS_TERMINATE_REQUESTED=8
JOB_STATUS_SUSPEND_REQUESTED=9
JOB_STATUS_RESUME_REQUESTED=10

cheers,

Parth

Answers (5)

Answers (5)

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

07-08-2009

Thats exactly what I needed, Parth. Thanks!

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

06-08-2009

I get a "3" when it has completed.

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

06-08-2009

Could you check what the value is for the process that actually has completed?

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

06-08-2009

Hmmm....while my process is running, I am getting statuscode values of "2". Could there be different values coming out of the web service?

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

06-08-2009

Hi Mike,

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.

Parth Pandya

http://blog.pandyaparth.com