Application Structure, Classes & Inheritance PPT & Guide
Application Structure, Classes & Inheritance PPT & Guide
Application Structure
Agenda
Day 3
• Application Structure
• Enterprise Class Structure – ECS
• Classes – Concrete & Abstract Class
• Class Group & Work pool
• Organization Structure
• Framework & Implementation Classes
• Databases in PEGA
2
UseCase
Consider Amazon is onboarding candidates to their company to hire developers with skills JAVA and PEGA.
Our application structure needs to reuse the rules such as logo, amazon account registration form.
We will create a framework application that holds reusable rules logo, registration form.
We can reuse this already created rules from framework into the implementation level application.
Generate division layer and unit layer for the implementation layer application.
Organization structure to be set as AMAZON-INDIA-HR
3
Application Structure
4
Framework & Implementation
1.Login To new framework application and start creating reusable
rules under a casetype.
2.From new application creation wizard, select your framework.
3.Select application structure to “Implementation”
4.Generate division and unit layer to class structure.
5. Add rulesets to hierarchy if needed and select framework class.
5
Class Structure
6
Enterprise Class Structure
7
Classes – Types of Classes
Concrete class – Class suffix doesnot end with -. Contains instances that can be
persisted to database.
Ex: AMAZON-IND-SALES-Work-CandidateHire
Abstract class – Class suffix ends with -. Instances cannot be saved to database.
@base class – contains topmost class rules such as PEGA functions, library etc.
8
Class Groups
Class Group is a group of similar/related concrete classes usually Work- class under
common relational database table.
Work pools are also similar to classgroup but they donot need to be similar/related
work object concrete classes.
9
Class Inheritance
PEGA as similar to parent/child classes also inherit the concept of inheritance from java.
There are 2 types of class inheritance concepts in PEGA.
1. Direct Inheritance
2. Pattern Inheritance
Direct Inheritance – Rule resolution determines the parent class of a child class from its class rule form.
Pattern Inheritance – Rule resolution determine the parent class of child class based on class structure
naming convention.
10
Organization Structure
Work groups define the group of work users who can be part of eligible
Users to receive any routed assignments.
11
Databases
12
Databases in PEGA
PEGA Maintains 2 types of databases internally inorder to store rules.
1. PEGADATA
2. PEGARULES
PEGADATA database primarily stored all application rules created by the operator/generated by
application.
All classes are internally mapped to a database table in PEGA Data database.
As instances are created under the class, they are automatically saved to internal database.
Realtime projects use external databases from major providers such as Oracle, MySQL, etc.
13
Hosting
PEGA application is deployed on Apache Tomcat app server (for personal edition) and IBM web
server (for cloud editions) and POSTGRESQL as DB Server to host and store rules.
In a WAR deployment, the prconfig.xml file is located under the contextroot directory in either the
\WEB-INF\classes subdirectory or the \APP-INF\classes subdirectory. For example for a WAR
deployment on Tomcat, this location is:
<app-server-install-root>\webapps\<contextroot>\WEB-INF\classes\
Example:
D:\apache-tomcat-5.5.16\webapps\prdbutil\WEB-INF\classes\prconfig.xml.
Tomcat generates .WAR Deployment while using IBM Websphere generates .EAR Deployment.
All the files such as images, documents, etc uploaded to PEGA application can be found under
WEBWB Folder.
The deployment archive holds the .JAR Application file to support deployment.
14
DSS – Dynamic system
settings
15
Dynamic System Settings
PEGA application is usually hosted on multiple nodes (servers) inorder to improve load performance.
Also called as load balancing. Now PRCONFIG.XML is specific to node.
It needs to manually reconfigured for other nodes. Also its not possible to easily customize it.
Dynamic system settings overrides this restriction as its same for all the nodes. It can be easily
configured from the PEGA Application itself. They are not present in locked rulesets
Use getsystemsetting function to get ASS DSS and getdatasetting function to get ADS
DSS values retrived.
16