Class



Class is a unit under which our business elements will be grouped together i.e. attributes and business logic

Predefined Classes or OOTB (Out Of The Box) Classes
·         In PRPC’s class hierarchy it has 13 topmost predefined classes available
·         Out of which the following 3 are most important
o   @baseclass: This is top most class in Pega. i.e. Parent class of all other classes
o   Work- : This class contains reusable components, using these components we can create Work. If we want to run our business we must have to reuse components from     this class  Work- class or any of its child classes
o   Data- : To work with database, we need to reuse the components from this class
·         All the predefined classes are reusable classes. In other words all these are abstract classes

Types of Classes in PEGA
There 2 different classes available.
1.      Abstract
2.      Concrete

Abstract Class:
·         Abstract classes are meant for reusability
·         We can only create the components under these classes, but we cannot run the business
·         PEGA 6 version, when we create an abstract class, its class name must end with ”–“ symbol. From Pega 7 onwards this has been removed.
·         Abstract class cannot be instantiated i.e. we cannot create work objects under abstract classes


Concrete Class: Concrete classes can be instantiated i.e. we can run the business under concrete classes. Concrete class name must not end with “-“ symbol

No comments:

Post a Comment