Home

This blog is about comprehensive, step-by-step Pega 7 and related Java EE examples. For more information on the Pega Platform, refer to Pegasystems. For the examples in all posts, the Pega 7 Exercise System was used (…which I installed locally as described in Running Pega 7 Exercise System on Tomcat 9 and PostgreSQL – without VMWare or VirtualBox).

  • Downloading a Pega 7 Exercise System requires a Pega Academy account.
  • Please refer to the Pega Academy Course List on how to register for a training course.
  • Once registered and enrolled in a training course, a Pega 7 Exercise System can be downloaded.

Currently, there are 29 posts as listed below. Please register to leave comments or to suggest post topics. If you have an example that you would like to share, please register and let me know through a comment.

UI Controls
A Data Page can be used to provide the source for the options of a dropdown user interface control in Pega 7.1.9. The dropdown control can be setup to either show a simple list of items or to aggregate the items with a Group By configuration.
A Data Transform can be used in Pega 7.1.9 to sort list structures such as a Page List. In this example, a Data Transform is used to show how to sort the entries of a Dropdown control that is backed by a List-type Data Page. In addition, another Data Transform is shown that sorts the Page List based on two properties.
This example shows how a foreign key type relationship (Linked Class Key) can be configured between two reference data tables. A column in one data table will hold key values that refer to instances in the other data table.
Administration
This post shows how the Pega 7 Exercise System can be installed on macOS or Windows using Tomcat 9 and the PostgreSQL DB Server – without the need for a virtual machine. Here, macOS is used but the steps for Windows are essentially the same.
Pega Academy provides Pega 7 Exercise Systems that are used to complete the course exercises and to provide a fully functional Pega 7 environment for training purposes. The exercise systems are packaged as virtual machine archives and require a virtual machine player to run. The Oracle VM VirtualBox can be used to run the Pega 7 Exercise System on macOS.
The Pega 7.1.6 Exercise System from Pega Academy runs on a virtual machine that uses the Ubuntu operating system. The virtual machine can be accessed through a command line interface that is provided by a virtual machine player such as VMWare Workstation Player or Oracle VM VirtualBox. This post shows how the Ubuntu Desktop GUI can be installed on the virtual machine.
This post shows how the PRPC schema (PegaRULES database) –assuming PRPC is configured to use PostgreSQL– and its tables can be accessed using the pgAdmin tool.
When Pega 7 is installed as a Personal Virtual Server, using VMWare (…as per the Exercise Systems on Pega Academy), the Tomcat manager application (…aka admin console) can be accessed from the host operating system. In this post, it is shown how to do that for Pega 7.1.6 and Pega 7.1.9.
A ruleset in Pega 7 can be deleted from the system within the Designer Studio. This post shows how the Ruleset Delete Tool can be used to do that.
A class can be deleted manually using the Designer Studio’s Edit Class form. However, this is a tedious and error prone process and the appropriate way for deleting an entire class, its instances and containing rules is to use the Pega 7 Delete a Class Wizard.
When running on a virtual machine as a Pega 7 Exercise System, the Pega platform’s file system can be accessed using an FTP client application such as FileZilla to exchange files between the host system and the virtual machine.

Automating Business Policies
Circumstancing can be used to handle special scenarios that would normally require changes to an existing rule -the base rule- without having to change that rule. Circumstancing allows a developer to create a copy of the base rule -the circumstanced rule-, which is applied at run time when specified conditions are met.
This example shows how the Designer Studio can be used to view case type instances and how an Activity can be used to delete case type instances from the PRPC Database (PegaRULES schema) in Pega 7. The activities in this tutorial will use the Obj-Delete-By-Handle and Obj-Browse methods to either delete single instances or multiple instances. Note that case type instances should not be deleted this way in a production environment. Please refer to the Purge and Archive Wizards for information on how to delete and archive old work on production systems.
An Activity can be used in Pega 7 to process a HTML Rule and send the resulting content to a web browser. This is known in Pega as stream processing. The Activity is accessed with a HTTP request using a URL.

Data Model
In this example, a Data Transform is used to iterate over a data page that uses a list structure. See this example on how to create a data page using the Data Table Wizard. For this example, a data page that is backed by a data table of car makes is used to show how to iterate over it in a data transform.
Pega 7 (and earlier versions) provides several utility functions for manipulating Strings. These functions can be called as part of Expressions in Data Transforms and Activities.
Data Tables
Describes how a Service and a File Listener rule can be used to import data from a CSV text file into a data table. During processing, the delimited text file is parsed and for each row, a record is created in the target data table. This approach can be used to import data from structured text files into Pega 7 data tables.
This post shows how to create a data table with the Data Table Wizard and how to use it to populate an auto-complete UI control, which allows a user to select a value from a list by typing characters into the control, and where the control automatically completes matching substrings.
File Service
Describes how a Service and a File Listener rule can be used to import data from a CSV text file into a data table. During processing, the delimited text file is parsed and for each row, a record is created in the target data table. This approach can be used to import data from structured text files into Pega 7 data tables.
Integration
This post shows how to create a REST web service in Pega 7.1.9 for consumption by external clients. In essence, a Pega 7 application is the service provider and uses a Service REST rule to expose a REST service that returns JSON data.
This post shows how a Connect REST rule can be created using the REST Integration Wizard and how it can be used in a Pega 7 application to call an external REST service. In this example, a sample REST service called Product Catalog, implemented in PHP, and hosted on this blog, will be used for demonstration purposes.
For calls to REST services, Pega 7 may have to be configured to use a HTTP proxy. This post shows 2 options to do that.
This example describes how a SOAP web service can be called from a Pega 7 application. The Pega 7 Integration Wizard will be used to process the WSDL file –Web Services Description Language– to generate the necessary Pega rules for calling the SOAP service.
In this example, the Pega 7.1.9 Connector and Metadata Wizard in the Designer Studio is used to create connectivity between a Pega 7 application and an external Microsoft SQL Server database table. This wizard will generate the necessary PRPC rules for mapping to the table’s columns and for browsing (Obj-Browse), inserting, updating (Obj-Save) and deleting (Obj-Delete) records.
This post explains how to connect to an external Oracle 11g Express Edition Database in Pega 7.1.9 using the Connector and Metadata Wizard in the Designer Studio. This wizard will automatically create the necessary PRPC rules for accessing an external database table and for mapping input parameters and query results.
This post shows how data can be accessed in Pega 7 from an external MySQL Database using the Connector and Metadata Accelerator. This wizard will generate the necessary activity rules for accessing the external MySQL DB table and for mapping input parameters and query results.
This post shows how to use the Email Wizard in the Pega Designer Studio for setting up a new email integration in Pega 7 so that a Google Mail account is used by Pega 7 for sending and receiving emails.
Java EE Web Development
In this example, the Eclipse Java EE IDE (Integrated Development Environment) and the Apache Tomcat Web Server are used to setup and configure a Java EE development environment for developing and testing Java web applications. This setup allows Java developers to create web applications that contain Java Servlets, JavaServer Pages and REST- & SOAP web services.
This post shows how to setup Apache Maven and how to create, build and run a new Maven Java project on macOS 10.
In this example, the Eclipse Java EE IDE is used to create a new SOAP 1.1 web service. The Apache Tomcat Web Server web server is used to deploy and run the web service and SOAP-UI is used to test the service operations. The SOAP 1.1 web service in this example represents a simple product catalog and provides methods to search and insert products.
In this example, the Eclipse Neon Java EE IDE and the Apache Tomcat 9 web server are used to create, deploy and test a REST web service using the Jersey JAX-RS API and Jackson Parser API. The Google Chrome application Postman is used for testing the REST service.
Reporting
This post shows how a Report Definition rule can used to create reports for case type rules. Common use cases include list-type reports that show case instances and summary-type reports on data gathered during case processing, such as summarizing customer related data such as a chart showing how many customers were serviced in each U.S. state.
 

8 thoughts on “Home

  1. hi ,

    Can any please share me the activity methods with scenarios? and also what are all the OOTB methods in activity and when we are going to use that? and how to handle the error in the activity with scenarios ?

    Thanks to all

  2. Hi,

    Can you please put together articles on how to setup LDAP and SSO authentication. The articles we find on PDN are mostly theoretical. A step by step guide would be of great help.

    Thanks in advance.

  3. Hi Guys.. Need information regarding How to Display Data from CSV or Excel file into PEGA RPA Studio(Pega Robotics Studio) form based on ID or Key Value.

  4. Hi there,

    I appreciate you for this amazing blog. I am a newbie into this pega and playing around with whatever I come across in pega. Not sure if your websites class of audience is intermediate level pega developers or if people like me as well can be benefited.

    If there is a UI tutorial involving most of the controls in sections, that could be of great help.

    Thank you

    • Hi, I hope Pega developers at any level can benefit. Currently, I posted mostly on integration and administration. I have a few posts on UI drop downs but not too much on UI controls in general. When I get time, I will post more in this. Meanwhile, I think Pega made their online courses available for free, so you can check there: https://www.pega.com/services/pega-academy

Leave a Reply