Pega Interview Series Part 2

Jul 20, 2024

Pega Interview Series Part 2

Introduction

  • Welcome to the Pega interview series part two.
  • Aimed to help viewers crack Pega interviews.
  • Contact info for Pega training provided.

Interview Questions and Answers

File Listener and File Formats

What happens if an XML file is used instead of a CSV file for a file listener?

  • File listener configured to consume CSV:
    • Picks the XML file successfully.
    • Fails during parsing due to the CSV-specific delimited rule.
    • Results in a runtime exception.
  • Solution: Create a Parse XML rule instead of a Parse Delimited rule.

Supported File Formats for File Listener

  • CSV files
  • XML files
  • Excel files
  • Text files
  • HTML files

Case Types and Stages

Moving Work Object from One Stage to Another

  • There is an OOTB (out-of-the-box) activity called pxChangeStage.
  • Located under the Settings tab in Case Type rule.
  • Option: “Automatically move to next stage when the previous stage completes.”
  • Invokes pxChangeStage to move the work object to the next stage.

Jumping from Primary Stage to Alternate Stage

  • *Methods:
    • Change to Stage automation shape.
    • Utility Flow Shape with pxChangeStage activity.

Decision Tables

Calling Decision Table from Activity

  • Methods:
    • Property-Map-DecisionTable method:
      • Parameters: Decision table name, Resulting property, (optional) Allow missing properties checkbox.
    • Property Set method:
      • Use function pxEvaluateDecisionTable.
      • Parameters: Primary Page name, Decision Table name.

Allow Missing Properties Checkbox

  • Handles exceptions when decision table properties are missing on the clipboard.
  • Pega checks only available properties on the clipboard.
  • Ensures the decision table evaluates with whatever data is present.

Report Definitions

Calling Report Definition from Activity

  • Use pxRetrieveReportData OTB activity.
  • Parameters: Report definition name, Result Page, Class in which report is created.
  • Results appear on the specified clipboard page, e.g., Page1.pxResults.

Purpose of Class Join in Report Definition

  • Retrieves data from multiple tables (e.g., Table A & Table B).
  • Add class join under the Data Access tab in the report definition.
  • Specify matching column values for data retrieval.
  • Other joins: Index joins, Associations, Sub-reports.