cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Windchill queue

SB_10566278
12-Amethyst

Windchill queue

Hi,

 

After adding job inside queue how to check its current state (Ready, Executing or Completed).

 

API is used for adding job inside custom queue.

QueueEntry queueEntry = processingQueue.addEntry(currentUserName, method, classname, argTypes, argsObj);

 

Best Regards,

Shrikant Bhosle

 

2 REPLIES 2

Hello @SB_10566278 

You need to save the ID of the queue and search for that queue and get the state. 

Usually a successfully process queue entry is removed from the system so you can not get the completed state. 

If your queue entry does not exists then it is completed successfully 

PetrH

 

As @HelesicPetr  already wrote, I would remember the OID of the job. If you started the job from a workflow you could use a synchronise robot to check if all the jobs are done. Otherwise you can create a schedule queue entry (job monitor) to regularly cycle through all the jobs.

The question is more, what are you trying to do? Just to check if the job is finished? But if not, what are you trying to do?

Announcements

Top Tags