Question

1
Replies
604
Views
TSUCK Member since 2010 125 posts
PEGA
Posted: 1 year ago
Last activity: 1 year 10 months ago
Closed

Create abstract class manually instead of using Data Type

Hi,

In my project all Data class are declared as "Concrete" class. Well, if the class is persistent (meaning has instances in the database) this is totally fine, but every class which was supposed to be declared as "Abstract" (meaning just referenced to from Work class as a page with no database records) is also declared as "Concrete". This reduces readability.

I have noticed that developers use Data Type in Data Explorer for creating any Data class (See below screenshot). And, this tool creates Data class as "Concrete" always, and map it to PR_OTHER table. At the same time, it creates even History-Data class as well. After Data Type is created, if you do "Configure source" in Records tab, it actually creates a physical database table and remap it to this from PR_OTHER.

Here is what I think:

I understand Pega wizard creates a bunch of stuff for a majority of people for ease, but shouldn't Data Type create a Data class as "Abstract" first without History class. Only when developer does "Configure source" it should change it to Concrete and creates History class and physical database table altogether.

Or, is this "Data Type" designed only for persistent Data class from the beginning? i.e. if you want to create an Abstract class, you always need to create it manually from rule type explorer by right click?

Thanks,

Data Integration
Moderation Team has archived post
Share this page LinkedIn