Skip to main content

pyWorkPage

Viewing Case data on the Clipboard

When you debug Case behavior, you often need to view the Case data that is in memory on the Clipboard. Viewing the data on the Clipboard can help you identify the cause of the issue. For example, a Data Transform that populates the EmployeeFullName field returns an unexpected result. You review the contents of the Clipboard to determine if one of the input properties, EmployeeFirstName and EmployeeLastName, contains an unexpected value. EmployeeFirstName is set to Ned, and EmployeeLastName is set to Greenbriar as expected. However, EmployeeFullName returns a value of Ng, which are the first two characters in the EmployeeEmail field. This result is not expected, so your next debugging step is to examine the Data Transform. 

pyWorkPage stores data that is generated during Case creation and processing. pyWorkPage is a specific Page on the Clipboard and stores data such as the Case creation date or the Case ID. Embedded Pages within pyWorkPage store sets of Case data as defined by a data type. For example, if a Case uses a data type named Customer, then Customer is an embedded Page within pyWorkPage. Pega Platform™ writes all the properties that describe the Customer data type — such as contact name — to the embedded Page.

Business customer pyworkpage

When you open a child Case, the Clipboard also contains the Page pyWorkCover. pyWorkCover contains the Case data for the parent Case. The Page enables you to copy data between the parent Case and the child Case and confirm that any data mapped from the parent Case to the child Case is correct.

Referencing pyWorkPage in other Rules

Each page on the Clipboard is an instance of a specific class, including pyWorkPage. When you configure a Rule that references a Page such as pyWorkPage, you indicate the class of the referenced Page. Indicating the class of the Page allows Pega Platform to resolve references to Rules within that class, such as properties. When you attempt to save a Rule that contains references to other Rules, Pega Platform attempts to resolve those references. If the Rule contains one or more unresolved references, Pega Platform cancels the save operation and informs you of the unresolved references. To indicate the class of a Page used by a Rule, use the Pages & Classes tab of the Rule to list the referenced Page and the class of that Page. The following example shows an entry on the Pages & Classes tab of a Rule to identify the class of pyWorkPage.

Pages and classes

For example, consider an application to process automobile insurance quotes. To price the quote, you need to know the driver's accident history. Each accident record is a specific data type instance. You create a report to return the accident history for a driver and use a filter to return only accidents for the driver requesting the quote. If the report filter uses the UserName property from pyWorkPage, you must tell the report the pyWorkPage class (for example, MyCo-PA-Work-Quote). Adding the class allows Pega Platform to reference the UserName property, and the report filter functions as intended. Otherwise, Pega Platform assumes that UserName is part of the data type, rather than the Case, and the filter does not work correctly.

Caution: When an application runs a Rule that references pyWorkPage, Pega Platform resolves any Rule references against the current instance of pyWorkPage. If the class of pyWorkPage at run-time differs from the class listed on the Rule, Pega Platform resolves Rule references differently, which may affect Rule execution.

Check your knowledge with the following interaction:


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice