ITask
Task interface for actionable Reservations from TaskRouter SDK
Properties:
source: Tasksource object backing the task
sourceObject: objectsource object backing the instance (any)
addOns: objectthe addons attached to the Task
age: numberthe age of the Task in seconds
attributes: objectthe attributes of the Task
dateCreated: Datethe date the Task was created
dateUpdated: Datethe date the Task was last updated
priority: numberthe priority of the Task
queueName: stringthe friendly name of the TaskQueue the Task is currently in
queueSid: stringthe sid of the TaskQueue the Task is currently in
reason: stringthe reason the Task was completed or canceled, if applicable
sid: stringthe sid of the Reservation
status: ITask.TaskReservationStatusthe status of the Reservation
taskSid: stringthe sid of the Task
taskStatus: ITask.TaskTaskStatusthe status of the Task
taskChannelSid: stringthe sid of the Task Channel associated to the Task in MultiTask mode
taskChannelUniqueName: stringthe unique name of the Task Channel associated to the Task in MultiTask mode
timeout: numberthe number of seconds the Task is allowed to live
workflowName: stringthe name of the Workflow responsible for routing the Task
workflowSid: stringthe sid of the Workflow responsible for routing the Task
workerSid: stringthe sid of the worker the task is assigned to
incomingTransferObject?: ITask.TaskTransfertransfer object if Task was transferred to the current user
mode: "COLD" | "WARM"- transfer modesid: string- The sid of this Transferstatus: "INITIATED" | "FAILED" | "COMPLETE" | "CANCELED"- transfer statusto: string- The sid of the Worker or TaskQueue this Transfer is intended fortype: "QUEUE" | "WORKER"- The transfer typeworkerSid: string- The sid of the initiating Workerworker?: IWorker- The instance of the initiating Workerqueue?: IQueue- Target queue instance
outgoingTransferObject?: ITask.TaskTransfertransfer object if is being transferred to another user by current user
mode: "COLD" | "WARM"- transfer modesid: string- The sid of this Transferstatus: "INITIATED" | "FAILED" | "COMPLETE" | "CANCELED"- transfer statusto: string- The sid of the Worker or TaskQueue this Transfer is intended fortype: "QUEUE" | "WORKER"- The transfer typeworkerSid: string- The sid of the initiating Workerworker?: IWorker- The instance of the initiating Workerqueue?: IQueue- Target queue instance
routingTarget: stringthe final target for task assignemnt
channelType: stringchannel type - either
channelTypeproperty defined in the attributes of Task ortaskChannelUniqueNamepropertydefaultFrom: stringdefault initiator of a Task. Either
nameorfromproperty defined in the attributes. If not specified then 'Anonymous' is returnedformattedAttributes: objectformatted task attributes used by flex ui
from?: string- formattedfromphone number with country codeoutbound_to?: string- formattedoutbound_tophone number with country code
conference?: Conferencethe conference related to this task