In Pega, data modeling involves defining data structures, properties, and relationships between objects in the Pega Platform application. This allows you to create a unified and consistent view of the data that is used in the application, making it easier to manage and maintain the data over time.
Pega’s clipboard structure is a dynamic data structure that is used to store data about the state of an application as it is being processed. The clipboard is used to store information about the current case, as well as any intermediate data that is generated as the case is processed. The clipboard structure is hierarchical, with data organized into classes, instances, and properties. This structure makes it easy to access and manipulate the data as needed and provides a way to share data between different stages of the application processing.
Introduction to data in memory in Pega
In Pega, data in memory refers to the data that is stored temporarily in the system’s memory while it is being processed. This data can include information about the current case, user session, and any intermediate data that is generated as the case is processed.
The data in memory is stored in the clipboard, which is a hierarchical data structure that is used to store and manage data in the Pega Platform. The clipboard structure is divided into classes, instances, and properties, allowing data to be organized and accessed in a structured and efficient manner.
One of the key benefits of having data in memory in Pega is that it allows for fast and efficient processing of cases, as the data can be quickly accessed and updated without having to retrieve it from a database. Additionally, the clipboard provides a centralized location for storing and sharing data between different stages of the application processing, making it easier to manage and maintain the data.
Data storage in memory in Pega
In Pega, data storage in memory refers to the way data is temporarily stored in the system’s memory while it is being processed. The data is stored in the Pega clipboard, which is a dynamic data structure that is used to manage and store data in the Pega Platform application.
The Pega clipboard structure is hierarchical, with data organized into classes, instances, and properties. Each instance in the clipboard represents an instance of a class, and contains a set of properties that hold the data values for that instance. The properties in an instance can be either data properties, which hold the actual data values, or reference properties, which hold references to other instances in the clipboard.
The data stored in the clipboard is used to manage the state of an application as it is being processed, and can be easily accessed and updated as needed. The clipboard also provides a centralized location for storing and sharing data between different stages of the application processing, making it easier to manage and maintain the data.
In Pega, data stored in the clipboard is temporary and is not saved to a permanent data store, such as a database, unless it is explicitly saved by the application. When the application ends, the data in the clipboard is discarded and any unsaved changes are lost.
Clipboard in Pega
The Clipboard in Pega is a dynamic data structure used to store and manage data in a Pega Platform application. It acts as a central repository for information about the current case, user session, and any intermediate data generated during processing.
The Clipboard structure is hierarchical and is divided into classes, instances, and properties. Each instance in the Clipboard represents an instance of a class and contains a set of properties that hold the data values for that instance. The properties in an instance can be either data properties, which hold the actual data values, or reference properties, which hold references to other instances in the Clipboard.
One of the key benefits of the Clipboard in Pega is that it allows for fast and efficient processing of cases, as data can be quickly accessed and updated without having to retrieve it from a database. Additionally, the Clipboard provides a centralized location for storing and sharing data between different stages of the application processing, making it easier to manage and maintain the data.
The Clipboard in Pega is a temporary data storage mechanism, and any data stored in it is not saved to a permanent data store unless explicitly saved by the application. When the application ends, the data in the Clipboard is discarded and any unsaved changes are lost.
Types of Pages in Clipboard in Pega
In Pega, there are several types of pages that can be stored in the Clipboard:
- Work Pages: Represents the current state of a case being processed. It contains information about the case, such as the case type, status, and any associated data.
- Data Pages: Represents a set of data that is used to store intermediate data generated during case processing. It can be used to store data that needs to be shared between different stages of the application processing.
- Flow Pages: Represents the current state of a flow, including the current flow action and any associated data.
- Step Pages: Represents the current state of a flow step, including the current step and any associated data.
- Local Pages: Represents data that is specific to a particular user session. It can be used to store data that is specific to a single user, such as user preferences or search results.
Each of these page types has a specific purpose and can be used to store different types of data in the Clipboard. The use of these different page types allows for a more organized and structured approach to storing and managing data in a Pega application.
pyWorkPage in Pega
pyWorkPage is a term used in Pega to refer to the Work Page in the Clipboard. It represents the current state of a case being processed in the Pega Platform application.
The pyWorkPage contains information about the case, such as the case type, status, and any associated data. It is used to store and manage data related to the processing of a case, such as user input, case history, and intermediate results.
The pyWorkPage can be accessed and updated by various stages of the application processing, allowing for the easy sharing and management of data between different stages. The data stored in the pyWorkPage is temporary and is not saved to a permanent data store unless explicitly saved by the application.
In Pega, the pyWorkPage is an important component of the Clipboard and is used extensively throughout the platform to manage the state of a case as it is being processed. It allows for efficient and effective management of data in a Pega application, making it a critical component of the overall platform architecture.
How to view clipboard data in Pega
To view the Clipboard data in Pega, you can use the Clipboard tool, which is a built-in feature of the Pega Platform. The Clipboard tool allows you to view the contents of the Clipboard and inspect the properties and values of the different instances and pages stored in the Clipboard.
Here are the steps to view the Clipboard data in Pega:
- Navigate to the Developer Studio in Pega.
- In the Developer Studio, go to the Tools menu and select Clipboard. This will open the Clipboard tool.
- In the Clipboard tool, you will see a hierarchical view of the Clipboard structure, with classes, instances, and properties organized in a tree-like structure.
- You can expand the different instances and pages in the Clipboard to view the properties and values stored in the Clipboard.
- To inspect the values of a specific property, you can click on the property to view its details in the Properties section of the Clipboard tool.
- You can also search for specific instances or properties in the Clipboard using the search function in the Clipboard tool.
The Clipboard tool is a powerful tool for inspecting the contents of the Clipboard and can be useful for debugging and troubleshooting issues with your Pega application. By using the Clipboard tool, you can quickly access and view the data stored in the Clipboard and ensure that your application is processing and storing data correctly.
How to use and set property values with the Clipboard in Pega
In Pega, you can use and set property values in the Clipboard by accessing the properties of the instances and pages stored in the Clipboard and assigning values to them. Here are the steps to set property values in the Clipboard:
- Navigate to the rule or flow where you want to set the property value.
- In your rule or flow, you can access a property of an instance or page stored in the Clipboard using the dot notation syntax. For example, to access a property named “propertyName” of a Work Page, you would use the following syntax: pyWorkPage.propertyName.
- To set the value of a property, you can use the assignment operator (=) to assign a value to the property. For example, to set the value of “propertyName” to “newValue”, you would use the following syntax: pyWorkPage.propertyName = “newValue”.
- You can also set the value of a property using a expression or the result of a function. For example, to set the value of “propertyName” to the result of a function named “myFunction”, you would use the following syntax: pyWorkPage.propertyName = myFunction().
- Once you have set the value of the property, you can use the property in your application as needed. The new value will be stored in the Clipboard and can be used by other stages of the application processing.
It is important to note that changes made to the Clipboard are temporary and are not saved to a permanent data store unless explicitly saved by the application. The Clipboard provides a centralized location for storing and managing data in a Pega application, and by using it to set property values, you can easily manage and manipulate data in your application.
Tracer in Pega
Tracer is a tool in Pega that allows developers to debug and troubleshoot their applications by providing visibility into the execution of the application and the contents of the Clipboard.
Tracer provides a detailed log of the activity in a Pega application, including the execution of rules, the flow of control, and the contents of the Clipboard. The Tracer log can be used to diagnose problems and issues with the application, such as errors in the processing of a case, incorrect data in the Clipboard, or issues with the flow of control.
Here’s how to use the Tracer in Pega:
- Navigate to the Developer Studio in Pega.
- In the Developer Studio, go to the Tools menu and select Tracer. This will open the Tracer tool.
- In the Tracer tool, you can select the application that you want to trace and the level of detail you want to see in the log.
- Start the trace by clicking the Start Trace button in the Tracer tool.
- Perform the action in your application that you want to trace. The Tracer will log the activity in the application, including the execution of rules, the flow of control, and the contents of the Clipboard.
- When you are done tracing, stop the trace by clicking the Stop Trace button in the Tracer tool.
- Review the log in the Tracer tool to see the activity in the application and diagnose any problems or issues.
The Tracer is an essential tool for debugging and troubleshooting in Pega and can be used to quickly identify and resolve issues in your application. By using the Tracer, you can improve the reliability and performance of your Pega application and ensure that it is functioning as expected.