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.
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.
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.
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.
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
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
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
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.
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.
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.
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.
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 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.
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.
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