Understanding About Classes:
Login with Implementation Application ID/ User ID/ Operator ID: Admin@ACKO
Password: rules
ACKO-ACKOAUTO-Work ( Work Layer/Work Pool/Work Class Group/Class Structure)
Purpose of Class: Any Pega Rules we create & execute/Compile can be done only under a class. i.e only under classes we can create rules &
execute the rules.
Class:
PEGA rules
If Class is not available, then we cannot create Pega Rules & We Cannot compile the rules
PRPC Will automatically creates all the classes in PEGA.
PEGA Contains diff classes:
Predefined Classes: 14
@baseclass (Super Class)
Work-, Data-, Int-, Code-, Index-, Rule-, CMIS-, Embed-,History-, Assign-, Log-, System,-, PEGA-
All Predefined Classes are Abstract Classes.
User Defined Classes:
Application Name, Organization Names, Unit Class( Work, Data, Int) it will generate user defined Classes
Work Class Group/Work Pool/ Work Layer/ Class Structure: (ACKO-ACKOAuto-Work)
Any Business rule we create, it will be executed only under ur Work class group. Class group is the main instance of the application.
Class group is a combination of Organization, Division & Unit Classes
ACKO-ACKOAuto-Work
ACKO: Organization Class ( Abstract)
ACKOAuto: Division Class/Application name ( Abstract)
Work: Unit Class ( Concrete)
---------------------
Types of Classes in PEGA:
There are 2 diff types of classes in PEGA:
Abstract:
These classes are meant for Reusability above the unit level.
We cannot compile/Execute the code in abstract classes (Non - initialized Classes)
We cannot create Work Objects under Abstract Classes
Before 7 Version abstract class names should end with - ( ABC-), from 7 version it is not required.
Ex: Data Class Group, Int Class Group, Organization Class, Division Class, All Predefined Classes
Concrete:
Are Initialized classes.
We can add the code, Reuse code from abstract classes & Compile the code
We can create Work Objects under Concrete Classes( Only Under Work Class Group & Work Classes)
Ex: Work Class group, Work Classes/Case Types, Data Classes/Tables, Int Classes
Concrete : 3 types:
Is a Class group: Work Class group/Work Layer
belongs to Class group: Work Classes ( If we are New Case Types)
Doesn't belongs to Class group: Data Classes, Int Classes
-----------------------------
Class Groups in the PRPC Application:
Work Layer/Work Class Group:
ACKO-ACKOAUTO-Work ( Concrete): We can add Main Business Functionality & Work Objects ( Is a Class Group)
Work Classes ( Concrete) - Belongs to Class group (ACKO-ACKOAUTO-Work-Insurance)
Data Layer/Data Class Group:
ACKO-ACKOAUTO -Data ( Abstract) -Under this we can add Data Types/Data Tables
Data Classes ( Concrete)- Doesn't Not Belongs to Class group (ACKO-ACKOAUTO -Data-EmpTable)
Int Layer/Int Class Group: To Add Int Rules
ACKO-ACKOAUTO-Int (Abstract) - Integration Services & Connectors Rules
Int Classes ( Concrete)- Doesn't Not Belongs to Class group (ACKO-ACKOAUTO-Int-RestService)
======
Parent Class for Work Class Group: Work-/Work-Cover-
Parent Class for Data Class Group: Data-
Parent Class for Int Class Group: Int-
======
Inheritance:
Inheritance: Makes Parent & Child relationship b/w classes
Class A ( Parent)
Class B ( Child)
Class A inherits Class B( Not Valid)
Class B inherits Class A ( Valid)
2 types:
Pattern Inheritance:
ACKO-ACKOAUTO
ACKO-ACKOAUTO-Work
ACKO-ACKOAUTO-Data
ACKO-ACKOAUTO-Int
User Defined Classes
In Pattern Inheritance a Child Class will have one or more parent classes
Pattern Inheritance is optional
Directed Inheritance:
In Directed Inheritance Parent class will be a Predefined Class
Child Class will have only one directed parent
Direct Inheritance is Mandatory
In Direct Inheritance, for Work Class group the parent class must be either Work-/Work-Cover-
Data Layer Direct Parent is Data-
Int Later Direct Parent is Int-
==========
How to Open Class Definition:
Right Click on Class-> Click on definition