How to Import Universal Queue Classes

The universal queue classes are not built-in classes, like rowset, field, record, and so on. They are application classes. You must import the universal queue application package before you can use the classes in your PeopleCode program.

An import statement names either all the classes in a package or one particular application class. For importing the universal queue classes, PeopleSoft recommends that you import all the classes in the application package.

The application package PT_MCF_UQAPI contains the following sub-packages:

  • Agent

  • AgentPhysQueueProps

  • AgentPhysQueueTasks

  • Broadcast

  • LogicalQueue

  • MCFFactory

  • PhysicalQueue

  • Task

  • TaskList

  • Util

The import statements you should use are as follows:

import PT_MCF_UQAPI:Agent:*;
import PT_MCF_UQAPI:AgentPhysQueueProps:*;
import PT_MCF_UQAPI:AgentPhysQueueTasks:*;
import PT_MCF_UQAPI:Broadcast:*;
import PT_MCF_UQAPI:LogicalQueue:*;
import PT_MCF_UQAPI:MCFFactory:*;
import PT_MCF_UQAPI:PhysicalQueue:*;
import PT_MCF_UQAPI:Task:*;
import PT_MCF_UQAPI:TaskList:*;
import PT_MCF_UQAPI:Util:*;

Using the asterisks after the package name makes all the application classes directly contained in the named package available. Application classes contained in subpackages of the named package are not made available.