Pega_Notes_with_Examples
Pega_Notes_with_Examples
1. Activity in Pega
Definition: A rule that defines a sequence of steps or instructions to automate backend
processing.
Purpose: Used for data manipulation, integration, and task automation.
Examples:
- Fetch customer details from the database and display them on a screen.
- Use Obj-Open to retrieve a specific order using an order ID.
2. Clipboard in Pega
Definition: A temporary memory structure that stores data during case processing.
Function: Contains pages that hold case-related data.
Behavior:
- Data is loaded into the clipboard when the case is active.
- Data is removed after the case is closed, but updates are committed to the database.
Example:
- During a customer inquiry, the customer's name and account details are stored on a
clipboard page. After the case ends, this data is removed but saved to the database.
3. Tracer in Pega
Definition: A debugging tool used to trace and analyze the execution of processes and rules.
Features:
- Identifies errors and performance issues.
- Tracks the order of rule execution.
- Displays parameters passed during execution.
Example:
- While testing an order submission flow, Tracer can show that a data transform failed to
populate order details due to a missing property.
4. PZINSKEY
Definition: A unique identifier or primary key for each row in the Pega database.
Structure: Encodes class, ruleset, version, and other metadata.
Purpose: Helps uniquely identify and retrieve records efficiently.
Example:
- PZINSKEY: RULE-OBJ-REPORT-DEFINITION CATALOG 01-01-01. This identifies a report
definition rule in the "Catalog" ruleset, version 01-01-01.
7. Rules in Pega
Definition: Building blocks for application logic.
Types: Activity, Data Transform, When Rule, Flow Action, etc.
Examples:
- Data Transform: Automatically map data from one page to another.
- When Rule: Define a condition to show a discount if the purchase value exceeds $100.
- Flow Action: Enable a user to submit an application form.
8. Example Scenarios
Clipboard vs Tracer: Clipboard acts as temporary memory during case processing, while
Tracer is for debugging and monitoring rule execution.
Example: Tracer shows an activity failed due to an invalid property, which can be verified
on the clipboard.
Activity Usage: Activities automate processes like fetching and saving data using predefined
methods.
Example: Use an activity to check product availability and update stock in real time.