Task method: universal queue classes class
Syntax
Task(TaskNumber)
Description
Use the Task constructor to instantiate a task object.
Only persistent tasks (email and generic tasks) are available for introspection. Each persistent task goes through a lifecycle that is recorded by the following statuses:
| State | Indicated Action | Status of Task Object |
|---|---|---|
|
Enqueued by the universal queue server |
Enqueued |
ENQ |
|
Universal queue assigns to physical queue |
Assigned |
ASGN |
|
Agent accepts task |
Accepted |
ACPT |
|
Agent completes task |
Done |
DONE |
|
Task is not accepted within the overflow (action) time period |
Overflowed |
OVFL |
|
Agent does not complete task or task not assigned within the escalation (complete) time period |
Escalated |
ESCL |
|
Indeterminate Task (task not found in system) |
Indeterminate |
IND |
Parameters
| Parameter | Description |
|---|---|
|
TaskNumber |
Specify a task number. |
Returns
A task object if the task exists, or an error message if the task number is not in the expected format. If the task number is properly formatted, but the task is not found, the task object is returned with a task status of IND.
Example
Local string &tasknumber, &status;
Local Task &myTask = Create Task(&tasknumber);
&status = &myTask.Status;
Related Topics