What Is the Difference Between Data Type and Data Page in PEGA?
When working with PEGA, it is important to understand the difference between data types and data pages. While they both deal with data, they serve different purposes and have distinct characteristics.
Data types in PEGA provide a structure for modeling and storing data. They define the properties and their types that can be used to capture information. Data types are used to create instances of objects, which represent real-world entities in the application.
Data types consist of one or more properties, each with its own type such as text, number, date, or boolean. They can also include embedded properties that allow for complex data structures. Properties within a data type can have different attributes like required, read-only, or calculated.
For example, consider a data type called “Customer” which has properties like “Name,” “Age,” and “Address.” Each property within the “Customer” data type has its own defined type and attributes.
Data pages in PEGA are used to retrieve and store data at runtime. They act as a cache between the user interface (UI) layer and the underlying systems or databases. Data pages provide a way to access frequently used or shared data efficiently without making repeated calls to external systems.
Data pages can be sourced from various sources such as database tables, services, or other external systems. They can also be created manually within PEGA by defining the source and structure of the data.
Unlike data types, which are static structures defined during design time, data pages are dynamic entities that hold real-time information during runtime. They can be created on demand or preloaded based on specific conditions or user actions.
Now that we understand the basic concepts of data types and data pages, let’s highlight some key differences between them:
- Data Structure: Data types define the structure and properties of an object, while data pages hold actual data retrieved at runtime.
- Design Time vs. Runtime: Data types are created and modified during design time, whereas data pages are created and accessed during runtime.
- Persistence: Data types can be persisted in the database or other storage systems, while data pages are temporary in nature and do not persist beyond the current session.
- Data Source: Data types do not have a specific source as they represent a design-time concept, whereas data pages can be sourced from various systems or services.
- Data Manipulation: Data types allow manipulation of individual properties within an object, while data pages enable retrieval and storage of entire sets of data.
In summary, data types define the structure and properties of objects, while data pages act as a runtime cache for retrieving and storing real-time data. Understanding these differences is crucial when designing PEGA applications to ensure efficient handling and management of data.