IBM FileNet P8, Version 5.2.1            

Displaying a List of Queues

To query for and display a list of queues, do the following actions:

  1. If you do not already have a VWSession object, you must log in to the Content Platform Engine server and establish a workflow system session by using VWSession.
  2. Get the names of queues accessible through the session by using VWSession.fetchQueueNames(). The fetchflag(int) flag specifies the types of queues to be returned. For example:
     
      // Fetch a list of queue names for Work queues (QUEUE_PROCESS)
      // and User Queues (QUEUE_USER_CENTRIC)
      
      int myQueueFlags = (VWSession.QUEUE_PROCESS | VWSession.QUEUE_USER_CENTRIC);
      String[] QueueNames = null;
      QueueNames = MySession.fetchQueueNames(myQueueFlags);

    When you fetch the queue names, you need to filter out the Component queues. To filter out the Component queues, get the queue by using VWSession.getQueue(), and check the property by using VWQueue.getIsConnectorQueue(). This method returns a Boolean value that indicates whether the queue is a Connector queue.

  3. You can use the queue names that are returned to create an instance of the VWQueue class (VWSession.getQueue() returns a VWQueue object).
  4. Display the list of queue names as is appropriate for your application.

Additionally, you might find it helpful to use the QueueHelper Sample class.



Last updated: October 2015
display_list_queues.htm

© Copyright IBM Corporation 2015.