Pega interview concepts on Data Management

How to pre-load the data page before the screen UI renders?

In the pre-activity of the flow action, have to use the **LOAD-DATAPAGE** PEGA API method to load the data pages before the screen UI renders.

If there are multiple D Pages used as part of the screen, then configure the *asynchronous data page pool name* as part of the LOAD-DATAPAGE PEGA API method and use the Connect-Wait subsequently to invoke multiple D Pages.

What is the implementation approach for a 50K RECORDS data for a parameterized data page approach?

1. Load all 50K Records into a single node-level data page
2. For the parameter data pages access, load the records from the node level data page

  • **The above approach reduces the number of database calls for the different parameters data page retrievals.***

How the node-level data page is loaded?

For a node-level data page, a new requestor is created with the access group associated with the data page to load the data page. The access group of the requestor determines the ruleset to use and the security context for the rule resolution during the load.

  • **Note: PEGA Recommendation is to create a separate access group for the node level data page loads. This will provide the security for the requestor that gets created for the loads.***

How do the page limits work in the data pages?

Page limits

For read-only data pages with a scope of Requestor or Node, select the Clear pages after non-use check box to force the system to delete the clipboard instances of the data page after an interval passes with no access. Subsequent attempts by a requestor to access the data pages cause the pages to reload. ***This setting does not apply to editable data pages.***

When selected, this setting has different effects depending on the scope of the data page:

__Requestor scope__ — The data page instance that is created when any thread refers to the data page is removed when there are no more threads referring to it.

__Node scope__ — The system checks the Reload if older than fields on the Load Management tab of the data page rule. If the fields are blank, the system uses the value of the Dynamic System Setting DeclarePages/DefaultIdleTimeSeconds, which is set by default to 86400 seconds, or one day.

  • **Note: Read-only data pages are never passivated. If a requestor or thread is idle and gets passivated, all read-only data pages in that requestor or thread are cleared and reloaded the next time they are referenced, whether or not Clear pages after non-use is selected.***

What are the different types of data pages?

There are three different types of data pages

  1. __Read-only__: Read-only data pages can be modified during the page load and in the post-processing activities
  2. __Editable__: Initial data page opens up in the read-write mode. Editable is applicable for Thread and Requestor level data pages.
  3. __Savable__: Savable data page saves the data to the database.

LSA Level

What are the data model principles?

Below is the list of principles that we have to follow as part of the data model design

  1. __Data Modelling Composition__
  2. __Data Modelling Encapsulation__
  3. __Data Modelling Inheritance__
  4. __Data Modelling Polymorphism__

How do you handle the data model system of record?

Below are the three options that are available to define at the property level

1. __Manual__
2. __Refer to a Data Page__

Scenario: System of Record — Customer data is dynamic and case should have the updated relevant information

3. __Copy from a Data Page__

Scenario: System of Record — Finance Product Details — Need to ensure the data integrity of the finance product details at the time of case creation.
After the case creation, the changes to finance product details should not have an impact on the transactional case.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store