Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for queue to skillset 1

Status
Not open for further replies.

pronei

Vendor
Mar 11, 2008
1,010
US
I've encountered a few instances where it would have been nice to be able to check if a call is queued to a specific skillset. I've not been able to accomplish this.

Obviously I can run a check to see if the call is queued, but when dealing in a script that has multiple backup layers and thus multiple skillsets involved I would like to be able to check which skillset the call is queued to at any given point. I would imagine the command to check would be:

IF QUEUED TO SKILLSET skillset1_cv THEN

However, that statement is invalid.

Is there anyway to check that particular logic?
 
It takes writing more code, but you can check if a call is queued to an individual skillset by ckecking the priority of the call in queue (priority 0 means the call is not queued, priority 1-6 means the call is queued).

I normally write a check like this:

IF PRIORITY IN QUEUE skillset1_cv = 0 THEN
IF NOT OF SERVICE skillset1_cv THEN
QUEUE TO SKILLSET skillset1_cv
WAIT 2
END IF
END IF
 
Good thinking!

I never considered the testing the priority.

Have a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top