Discussion
3
Replies
3186
Views
Incessant Technologies Pvt Ltd
Posted: August 25, 2015
Last activity: September 20, 2015
Closed
Classes inheriting from Embed- base class can be concrete?
Embed- base class
By definition, a class derived from the Embed- base class is used only for embedded, rather than top-level, clipboard pages. Accordingly, no saved instances of concrete Embed- classes ever exist.
When no saved instances of concrete Embed- classes ever exist, why most of the PEGA OOTB classes that are inherited from Embed- are concrete.
like...
Embed-ActionData
Embed-ActionEntry
Embed-ActionErrors
Good Question Kiran.
The reason they are concrete is because they are not meant to be saved as individual objects themselves meaning you will not have a top level page of class Embed-ActionData, but there might be a top level page pyPortal of class Data-Portal which might have a pyActionQueue pagelist with pages of class Embed-ActionEntry.(refer to DoDesktopAction activity).
So the idea of Embed- classes is to reuse those classes for embeding data across a lot of stuff pega does across the various other main classes like Rule-,Data-,Link-,History - etc.
Now if you still feel , Embed-ActionEntry can be a abstract classas it is never saved in silo as a top level object, think of this situation :
pyWorkPage (ABC-XYZ-KLM-Work-MortgageApplication) is your top level page which has a Customer page (ABC-Data-Customer) and which has a page list of assets Assets(ABC-Data-Assets-) at design time.
Now when you create a Mortgage application (pyWorkpage),you would save a list of customer assets with each asset being a particular type like RealEstate(ABC-Data-Assets-RealEstate),LiquidAssets(ABC-Data-Assets-Liquid) etc. but your assets pagelist will not have an instance of abstract class(because abstract class cannot have an instance) at runtime when you wish to save the object(Mortgage Application).
Just to wrap up, a class is defined concrete not just assuming you would always save an object of that class in silo.Hope this helps.
Thanks,
Ashok