How to Import the Notification Classes

The Notification classes are not built-in classes, like Rowset, Field, Record, and so on. They are application classes. Before you can use these classes in your PeopleCode program, you must import them to your program.

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

The application package PT_WF_NOTIFICATION contains the following classes:

  • Notification

  • NotificationAddress

  • NotificationTemplate

The application package PT_WF_WORKLIST contains the following classes:

  • Worklist

  • WorklistEntry

  • WSWorkListEntry

The import statements you should use are as follows:

import PT_WF_WORKLIST:*;

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.