Setting Up the Data Library

This section gives an overview of the data library and discusses how to:

Click to jump to parent topicUnderstanding the Data Library

The data library is a repository for information within the PeopleSoft Active Analytics Framework. Each element in the data library is exposed by way of a term, which is a pointer to a unit of data within the PeopleSoft system. This data may reside in a relational database, or it may be derived at runtime.

See Also

Understanding PeopleSoft Active Analytics Framework

Click to jump to parent topicUsing Data Library Components

This section describes the components used to populate the data library.

Click to jump to top of pageClick to jump to parent topicPages Used in This Chapter

Page Name

Object Name

Navigation

Usage

Manage Terms

EOCF_TERM_CFGSRCH

Active Analytics Framework, Data Library, Manage Terms

Used to define and manage terms.

Subject Area

EOCF_TERM_SUBAREA

Active Analytics Framework, Data Library, Manage Terms, Subject Area

Used to define the subject area details.

Policy Options

EOCF_TERM_INACTION

Active Analytics Framework, Data Library, Manage Terms, Policy Options

Used to define policy options.

Extended Attributes

EOCF_TERM_ATTR

Active Analytics Framework, Data Library, Manage Terms, Extended Attributes

Used to add additional attributes to terms.

Define Implementation

EOCF_IMPL_DEFN

Active Analytics Framework, Data Library, Define Implementation

Used to define an implementation.

Test Term Implementation

EOCF_TEST_TERM

Active Analytics Framework, Data Library, Manage Terms, Test Term Implementation

Used to test a term's implementations.

Click to jump to parent topicCreating Implementations

An implementation refers to the mechanism through which the data is retrieved, derived or computed. The implementation knows either where the data physically resides or it knows the algorithm for deriving the value. All terms must be associated with an implementation unless the data to which the term refers is present in the component buffer.

An implementation can be associated with more than one term. Conversely, a term may require multiple implementations if it needs to be resolved from multiple contexts. Typically, application developers or IT personnel develop implementations.

Note. Terms that are resolved by accessing data available in the current operating component's buffer, do not need implementations to be developed. PeopleSoft Active Analytics Framework provides mechanisms to access data available in the component buffer.

PeopleSoft recommends that when multiple related terms will be accessed during a single business event, create a single implementation to return a rowset containing the data for several terms; then, specify which data element or field position in the rowset or record is to be used for the term.

Implementations are developed using:

Click to jump to top of pageClick to jump to parent topicRegistering an Implementation

With the exception of component buffer implementations, all implementations must be registered in the PeopleSoft Active Analytics Framework. Before registering an implementation, you should have already defined PeopleSoft Application Designer objects if using application class, PS Query or SQL Object implementation methods.

Specify the following in the registration component:

Note. The binds specified for an application class implementation are referenced in the application class object for retrieving the values. Therefore, changing these implementation bind names can have adverse effect on the term resolution.

For IT users: The list of implementation binds specified are being used for two purposes: 1) To allow implementations to access these bind values. For any implementation, bind values are passed by position regardless of the resolution method used. Application class-based implementations alone have the additional capability to access the bind values by name. 2) To allow the data library engine to use these binds to uniquely tag the data in application cache. If IT users “take a short cut” by retrieving the necessary data by directly accessing the context (by not registering the data as implementation binds), the data library engine may, as a result, tag the data with incomplete key information. This could cause the same cached data to be incorrectly reused for resolving terms for which it is not valid.

Click to jump to parent topicCreating Terms

A term is a user-friendly name that refers to the data library content. It's essentially a piece of information that could exist in the PeopleSoft system or an external system, or it could be derived. For example, the data could be available in the component buffer; retrieved using a PS Query or an SQL object; or, computed using an application class.

Terms are the building blocks in policies. Functional users can build conditions for a policy using terms present in the data library. Terms must be registered in the PeopleSoft Active Analytics Framework before they can be used.

Registering a term is a multi-step process that includes:

Click to jump to top of pageClick to jump to parent topicUnderstanding Term Properties

Defining a term involves specifying the following:

Note. PeopleSoft Active Analytics Framework does not format the data. It is the term user's or term implementer's responsibility to format it according to their needs. For example, the term Current Date is always resolved using the standard YYYYMMDD format.

Click to jump to top of pageClick to jump to parent topicUsing Generic Implementations

A generic implementation can resolve terms within the requesting context. You define generic implementations for terms when they can be used in various contexts and when any new contexts may want to use that term.

Examples of generic implementations are:

Click to jump to top of pageClick to jump to parent topicUsing Contextual Implementations

If the input data needed for invoking an implementation is too specific and cannot be supplied outside of the component, then the implementation must be associated with the component's context. For example, terms such as case status, order creation date, or case description, cannot be resolved from components other than those in which they are present.

Terms that have different implementations depending upon their contexts will have an implementation associated with a specific context. For example, the term Revenue for a customer/ segment / segment groupis computed differently depending on the context from which it originates. The implementation specific to the customer context calculates the revenue value from that customer. The implementation specific to a segment context calculates the revenue value generated from all the customers belonging to that segment, and so on for segment group.

Click to jump to parent topicManaging Terms

Before defining a term, you should have already:

Access the Manage Terms page.

Term Name

Unique identifier of the term; label that will be displayed to the functional users. Though allowed, PeopleSoft recommends that special characters not be used in term names.

Term Type

Specify that a term is a variable or constant. Variable terms must have at least one implementation.

Term Code

Uniquely identifies a term when accessing a term programmatically. This is user-defined.

Number of Rows

Number of rows to be returned, one or many (scalar or vector). If this field is Many, the term cannot participate in policy conditions.

Note. Applications directly integrating with the data library are responsible for converting the resolved output value of a term (which will be of data type any) to the appropriate data type.

Status

Valid values are Active , Inactive and In-Design. Only active terms are used in policy conditions and other applications.

Data Type

Return data type of the term. Possible values are string, number, date, datetime, time, record and rowset.

Run-Time Display

Specify user binds for this term, which will be needed when the resolved value of the term depends on user defined binds.

 

Prompt Users for Bind Values

Specify the bind name; (optional) specify prompt options.

Generic Implementation

Specify a generic implementation. Generic implementations are resolved by deriving the bind values from the runtime context. Terms having generic implementations can be resolved by multiple contexts. You specify a generic implementation by selecting an existing implementation from the prompt or creating a new one using the Create button. Click on the View applicable contexts hyperlink to view the list of contexts in which this term would be resolved.

Contextual Implementation

Select an implementation specific to a context. Contextual implementations are resolved by deriving the bind values from this specific context.

Input Mapping

Maps the implementation binds to context variables or to constant values. If the term has user binds, one or more implementation binds must be mapped to the user binds. For generic implementations, this mapping is critical for this term to be resolved by multiple contexts.

Output Mapping

Specify the extraction parameters for a term implementation—such that a subset of the value returned by the implementation is returned as the resolved value of the term.

Note. Use caution when making changes to the term definition after the term has been associated to one or more policies. Changes to term attributes such as data type, number of rows, implementation category, and implementation details; or, changing a non-configurable term to a configurable term and vice versa, could have significant impact on the policies which reference this term. It is possible that these changes could result in invalidating these policies. Before making any of these changes, view the policies using a term by clicking the hyperlink View Policies Using This Term.

Click to jump to parent topicTesting Term Implementations

Access the Test Term Implementation page.

Specify Implementation

Specify whether you want to test the generic or contextual implementation defined for the term.

  • Contextual. If you select this you must specify a context name from the drop-down list. Displays the list of bind values required by this implementation in a grid.

  • Generic. If you select this, the context from where the term is resolved must be specified.

Check Flush Cache if you do not want the system to fetch the value for this implementation from the memory cache.

List values..

Enter sample values for the parameters expected by the implementation and click Run Test.

Test Results

Displays the resolved value of a term implementation being tested and the elapsed time to retrieve the value.

Note. Context variable implementations of a term cannot be tested. Also, terms that have application class implementations accessing data from a component buffer or directly from the context, cannot be tested in the Term Tester page. Testing these terms will result in an error message.