Queue assignment
Each group in Guidewire PolicyCenter has an associated queue to which you can assign items. This is a way of putting assignable entities in a placeholder location without having to assign them to a specific person. Currently, Guidewire only supports assigning Activity entities to a Queue.
Within PolicyCenter, an administrator can define and manage queues through the PolicyCenter Administration screen.
See also
assignActivityToQueue
boolean assignActivityToQueue(queue, currentGroup)
Use this method to assign this activity to the specified queue. The activity entity then remains in the queue until someone or something reassigns it to a specific user. It is possible to assign an activity in the queue manually (by the group supervisor, for example) or for an individual to choose the activity from the queue.
To use this method, you need to define an AssignableQueue object.
Defining an AssignableQueue object by using the group
name
You can use the name of the group to retrieve a queue attached to that group.
Activity.AssignedGroup.getQueue(queueName) //Returns an AssignableQueue object
Activity.AssignedGroup.AssignableQueues //Returns an array of AssignableQueue objects
In the first case, you need to know the name of the queue. You cannot do this directly, as there is no real unique identifier for a Queue outside of its group.
If you have multiple queues attached to a group, you can do something similar to the following to retrieve one of the queues. For example, use the first method if you do not know the name of the queue. Use the second method if you know the name of the queue.
var queue = Activity.AssignedGroup.AssignableQueues[0]
var queue = Activity.AssignedGroup.getQueue( "QueueName" )
Activity.CurrentAssignment.assignActivityToQueue( queue, group )
