How to Import the Analytic Calculation Engine Metadata Classes

The Analytic Calculation Engine metadata 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 Analytic Calculation Engine metadata classes, PeopleSoft recommends that you import all the classes in the application package.

The application package PT_ANALYTICMODELDEFN contains the following subclasses:

  • AnalyticModelDefn

  • CubeCollectionDefn

  • CubeDefn

  • DimensionDefn

  • ExplicitDimSet

  • OrganizerDefn

  • RuleDefn

  • UserFunctionDefn

Additionally, there is a sub-application package, RuleExpressions, that contains classes used to build a rule as object instead of as a simple string. This package contains the following classes:

  • Assignment

  • Comparison

  • Constant

  • Constants

  • Cube

  • ExpressionBlock

  • FunctionCall

  • MemberReference

  • Operation

  • RuleExpression

  • Variable

The import statements that you should use should be as follows:

import PT_ANALYTICMODELDEFN:*; 
import PT_ANALYTICMODELDEFN:RuleExpressions:*;

Using the asterisks after the package name makes all the application classes directly contained in the named package available.