Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

#Let’s LEARN PEGA TOGETHER

TOPIC: INHERITANCE CONCEPT IN PEGA

(By Amardeep)

Post creation of an application we can see that many types of


classes has been created .Puposefully we may have to choose
different classes in order to achieve different business
requirements .
Here , in the app explorer we can see one work class(LIC-
LICLOANAPP-Work) is there .

Similar to this we have may other classes .

Such as (LIC-LICLOANAPP) which is also can be called as


division layer class.

Along with this we have LIC- class also .Which is top level
generally as per our application.
With this classes we have other different classes such as
Data-,Int- etc which we use at time of data manipulations or
somewhat at integration .

Inheritance of classes that pega support is a. Direct


Inheritance ,b. Pattern Inheritance .

Generally class group related class i.e LIC-LICLOANAPP-


Work is having both structure of Direct as well as Parent .

When we check the definition of the class below we can find


the inheritance defined .
Now let’s understand what is Pattern Inheritance first.

Suppose B& C are two generations of A (A is the ultimate


parent of B &B is the ultimate parent of C) so whatever
properties A is having it can be shared to B as well C . Pattern
parent goes like this for ex:A-B-C.

Now C will inherit from A-B-.Also B will inherit from A.

One thing to notice here is as we are dealing with work


related class which is also in direct inheritance with Work-
Cover-.By any chance we cannot be able to modify these.So
work related classes always be in direct inhertitance with
Work or child classes or Work .
If we try to do so we will get error .

Now let’s come to Direct Inheritance .

So as we can see here work related classes always inherit


from work – or child class of work -.

As we know that we are creating any application on top of pega


application means Whatever the rules are there in pega ootb
we can be able to use those also we can modify some rules as
per our need.

So when we try to open these classes we can see


Our work –cover- class is inherting from Work- (Which is
parent of Work-Cover-)

Again when we open this class too we got to see that Work-
class is inherting from @baseclass.
Again when we try to move one level up above of @baseclass
there is nothing .

So what we can conclude from here ?

Our class group (LIC-LICLOANAPP-Work)will look up at


pattern inheritance first as we selected (Find by name first
(Pattern) ).If rules whatever is require is there at this level
we can pick or use .If not the it will move to direct
inheritance which is upto @baseclass.Which the topmost layer
of pega is the the baseclass.

This is all about Inheritance concepts which is consider as to


beone of fundamentals of Pega .
Hope you liked it !

You might also like