You are here: Reference > Rule types > About data pages

Data Pages
 

 
  1. About 
  2. New 
  3. Test Cases 
  4. Definition 
  5. Load Management 
  6. Parameters 
  7. Pages & Classes 
  8. Test Cases 
  9. Usage 
  10. History 
  11. More... 
 

A data page (formerly called a declare page) rule defines the contents of a clipboard page. There are two types:

Data pages load synchronously by default. To have them load asynchronously, so users can take action on a work item while other content is still being loaded, do one of the following:

Benefits

Data pages can improve performance and reduce memory requirements when all or many requestors in an application need to access information.

For example, a data page may hold last night's closing U.S. stock prices in a Value Group property indexed by ticker symbol, so that the property reference D_Stock.Price("IBM") is the closing price for IBM shares. The first time each evening (after the 4:30 P.M. New York market close) that a requestor attempts to access the page, the system automatically loads the page with the latest end-of-day prices. The page can remain unmodified in memory until the next day's closing.

Even more significantly, you can reference data pages using parameters, and the data page can create on the clipboard unique instances of itself for each unique reference, with data related to the parameter values. For instance, a single data page, D_Customer, can create many instances of itself on the clipboard as your application requires, and each instance has exactly and only the information about that particular customer.

In other situations, data values are not static but may change infrequently; the system automatically checks the data page contents (using a when condition rule) before each property access to see whether a fresh recomputation is needed. For example, a page may list the part numbers or SKU numbers of items that are out-of-stock, extracted from an inventory control system. Recomputation is needed only as often as an out-of-stock condition begins or ends, not each time the inventory changes.

Where referenced

Almost all rule types can reference the pages created by data pages rules and provide values for the properties on such pages; they do not explicitly reference the rule.

To locate, review, and manage data pages:

When a requestor accesses a data page, the data page creates a new instance of itself on the clipboard. Each data page, and each instance of it on the clipboard, has a name that starts with Declare_ or D_. Rules of any type that can reference properties on pages other than the current or primary page — including activities, decisions, and parse rules — can reference properties on data pages in a read-only context. Typically, the rule form identifies the name and class of a data page on the Pages & Classes tab.

Access

Use the Data Explorer to list all the Data Pages available to your application.

Category

Data Pages are instances of the Rule-Declare-Pages class. They are part of the Data Model category.

Notes

Data pages are not created at system startup; they are created only when first accessed.

Ordinarily, data pages do not persist; they are not saved to the PegaRULES database but are reconstructed when next accessed and the previous version is expired.

On the Clipboard tool display, data pages appear as a group named Data Pages.

On the Performance tool full details display, you can review (for your own requestor session) elapsed time and CPU time statistics associated with creating, finding, and accessing data pages, and counts of the number of node-level data pages your requestor has accessed.

The system maintains node-level data pages in a cache.

Related Topics Link IconRelated information