Feedback

  • Contents
 

Queue.startChatObjectsEnum Enumeration Property

Definition

This property returns an enumeration of ChatObjects for queue. The enumeration is traversed using the hasMoreElements and nextElement methods of the enumeration. Each call to the nextElement method returns successive elements of the series. The hasMoreElements method will return a Boolean true if this enumeration contains more elements.

Starting with 2018 R3, the Queue.startCallObjectsEnum, Queue.startChatObjectsEnum, Queue.startConferenceObjectsEnum and Queue.startObjectIdsEnum properties now accept an optional callback (for use with Connect scripts only) whose single parameter contains the result. See Interaction Connect Example in Queue.startCallObjectsEnum Enumeration Property for an example.

Syntax

Queue.startChatObjectsEnum

Usage

Read Yes

Write No

Value Assigned

None.

Value Returned

Java Enumeration

The enumeration containing the list of ChatObjects.


Java Enumeration Example (JavaScript)

// disconnect call objects in the queue
var calls = scripter.myQueue.startCallObjectsEnum;
while (calls.hasMoreElements()) {
    var CallObject = calls.nextElement();
    CallObject.disconnect();
}