Refresh strategies for Data Pages
Out-of-date data — also referred to as stale data — can lead to bad decisions, costly errors, and inefficient processes. Keeping the contents of a Data Page current is critical for ensuring accurate, desirable Case outcomes. The first time users access a Data Page, Pega Platform™ populates the page with up-to-date information. Subsequent users access the same cached data, even if the source data changes. To keep Data Pages current with changes in sourced data, configure a refresh strategy to identify and limit stale data.
Refresh strategies
The refresh strategy for a Data Page defines one or more Conditions for testing whether the contents of a Data Page are considered stale and need to be reloaded. When a user accesses a Data Page, Pega Platform checks the refresh Conditions configured for the Data Page. If a page meets at least one of the Conditions, Pega Platform reloads the page contents from the specified data source.
In a Data Page record, the Load management tab provides developers with three options for configuring a refresh strategy for a read-only Data Page.
Reload once per interaction
The Reload once per interaction option updates the contents of the Data Page each time a user accesses the page in memory. This option is available only for pages with the scope set to Thread or Requestor and cannot be combined with any other refresh option.
For example, travel reservation populates a Data Page with seating information for the flight selected by a customer. Select Reload once per interaction to update the Data Page every time the customer accesses the page, to ensure that the seating information is as current as possible.
Do not reload when
The Do not reload when option uses a When Condition to test whether the Data Page is considered stale. If the Condition returns a result of true, the contents of the Data Page are considered current and Pega Platform does not attempt to update the Data Page.
For example, a Data Page contains pricing and volume information for a specified security. After the trading day ends, the price and volume remain constant until trading resumes on the next business day. To prevent unneeded refreshing of the Data Page, configure a Condition to prevent Pega Platform from reloading the page after the trading day ends and before the next trading day begins.
Reload if older than
The Reload if older than option uses a fixed interval of time to determine whether a Data Page is stale. After the interval ends, the Data Page contents are considered stale, and the next attempt to access the Data Page causes Pega Platform to update the Data Page. So, if a Data Page with a Reload if older than interval of 10 minutes is first accessed at 1200 (12:00 PM), the page is considered stale at 1210 (12:10 PM). Pega Platform then updates the contents of the page when a user accesses the stale page, which may not occur until 1300 (1:00 PM).
For example, an employee onboarding Case allows a manager to assign a seating location to a new employee. An inventory of seating locations with the status of each location is stored in a database table and filtered to populate a Data Page with available seating locations at the branch office specified in the onboarding Case. The Data Page is parameterized to maintain an instance for each branch office. Stakeholders are confident that refreshing the page every minute is enough to avoid duplicate selections by managers.
Pega Platform never refreshes a Data Page more than one time per interaction, regardless of how the Data Page refresh options are configured.
Check your knowledge with the following interaction:
This Topic is available in the following Module:
Want to help us improve this content?