Question


TATA Consultancy Services Ltd
IN
Last activity: 6 Jan 2021 14:29 EST
what is Is a class Group,doesnt belongs to classgroup and belongs to classgroup
what is Is a class Group,does not belongs to classGroup and belongs to classGroup and what happens and what happens if we select classtype concrete and class as does not belongs to class group
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
IN
belongs to a class group
to indicate that: (1) the key format of this class is identical to the key format of another class, (2) an existing class group named identically to the other class exists, and (3) you want to store instances of this class in the same table as instances of other member classes. Typically, choose this option for a concrete class derived from the Work - base class.does not belong to a class group
to indicate that database storage of this class is determined by the class inheritance and database table data instances.is a class group
to have Pega Platform create a class group data instance with a name identical to the name of this class, This allows other classes to share a database table associated with instances of this class.
If this concrete class is derived from the Work- base class or the History-Work- class, select:
is a class group
orbelongs to a class group
.
-
Aditya G Maciej Czapiewski BAJARI Bajari Nityanand P


Cognizant
CA
Class Group concept is basically to group & store the related work objects.
For example, you want to store similar kind of work objects in a single database table. In some case you may want to store the parent and child cases to be stored in a single database table. In these scenario, you create your main/parent class as "is a class group". And you create your related/child classes as "belongs to a class group" (i.e) this class belongs to the main/parent class that you already created.
Main Class: A-B-C (Main/Parent class) - "is a class group"
For this class, you have to create a Database Table record in which you have to provide the schema & DB table name (eg. EmployeeInfo). So the work objects will be stored to this "EmployeeInfo".
Related/Child Classes:
A-B-C-D (belongs to a class group)
A-B-C-E (belongs to a class group)
A-B-C-F (belongs to a class group)
In these Related/Child class form, when you select "belongs to a class group", it will prompt the Class Group name in which you have to provide "A-B-C".
As you already created the "EmployeeInfo" database table for this "A-B-C" class group, all the instances/work objects of these related/child classes will be stored in "EmployeeInfo" database table. Individual Database table mapping record is not required.
Class Group concept is basically to group & store the related work objects.
For example, you want to store similar kind of work objects in a single database table. In some case you may want to store the parent and child cases to be stored in a single database table. In these scenario, you create your main/parent class as "is a class group". And you create your related/child classes as "belongs to a class group" (i.e) this class belongs to the main/parent class that you already created.
Main Class: A-B-C (Main/Parent class) - "is a class group"
For this class, you have to create a Database Table record in which you have to provide the schema & DB table name (eg. EmployeeInfo). So the work objects will be stored to this "EmployeeInfo".
Related/Child Classes:
A-B-C-D (belongs to a class group)
A-B-C-E (belongs to a class group)
A-B-C-F (belongs to a class group)
In these Related/Child class form, when you select "belongs to a class group", it will prompt the Class Group name in which you have to provide "A-B-C".
As you already created the "EmployeeInfo" database table for this "A-B-C" class group, all the instances/work objects of these related/child classes will be stored in "EmployeeInfo" database table. Individual Database table mapping record is not required.
"Does not belong to a Class Group" & Concrete class - This will be selected when you want to store any independent information. For example, you want to store the Country and its Capital name in a Database table. Here this table is just for data storage. Hence it will be a seperate table. You need to create Database Table record to store it in a particular table. Otherwise it will be stored to DATA.pr_other table by default.
You can do the table mapping only for Concrete classes.
-
Vishal Yadav Tarun Kumar Pulletikurthi Pavel Balakshin Aditya G Su Zhu and 17 More


TATA Consultancy Services Ltd
IN
Hi Vivek,
Here i had a small queries from the above post : 1) You mean to say if A-B-C is parent class/Main Class then it belongs to Is a class Group and also if D is child of A-B-C then it becomes belongs to class Group right..?
2) Also concrete class and Does not belongs class is like stores information in separate table.Here separate in the sense, creating data table from Pega studio or is this different from creating Data table directly in the Data Base.
3) Not understood this point
You can do the table mapping only for Concrete classes.
-
Venkat Akshay S


Cognizant
CA
Hi Pradeep,
1) You mean to say if A-B-C is parent class/Main Class then it belongs to Is a class Group and also if D is child of A-B-C then it becomes belongs to class Group right..?
A-B-C is parent class/Main Class which is a "Class Group". D is child of A-B-C then it becomes belongs to class Group.
2) Also concrete class and Does not belongs class is like stores information in separate table.Here separate in the sense, creating data table from Pega studio or is this different from creating Data table directly in the Data Base.
You can do through PEGA as well as directly creating table in Database. Its your choice.
3) I mean to say that you can't see the Class Group option for abstract class.
-
Tarun Kumar Pulletikurthi Sai Teja Potla Srinivasa Kumar Kudipudi Kalyan Kuracha


Larsen and Toubro Infotech
IN
Hi,
Firstly, on the class type we have abstract and concrete classes. Abstract classes cannot have class instances. We can create and store work objects only on concrete classes. Recommended process is to save top classes as abstract and their implementation classes as concrete classes to be able to create and store work objects on them. (which answers your third question)
Next, every concrete class creates a table for itself to store the data. Taking the same example, if A-B-C is the main class and A-B-C-D is it's child class, then A-B-C-D could belong to the class group A-B-C. Then all instances of A-B-C-D get's stored in the table created for A-B-C.
But if you want to store the instances of A-B-C-D in a separate table, you select doesn't belong to a class group.
Or if you still want to define child classes under A-B-C-D, you could select is a class group, and this again creates a separate table. (answers your first question)
Concrete class and doesn't belong to a class both stores information in separate table. And by separate table, it means separate data tables in the same database and not creating individual databases all together.
Hope this clarifies your queries.
-
Sam mk Fatema Alibhai Tarun Kumar Pulletikurthi Sonal Wakode ahmed sadat and 6 More


TATA Consultancy Services Ltd
IN
Hello sirisha,
From above Point Mentioned
Or if you still want to define child classes under A-B-C-D, you could select is a class group, and this again creates a separate table. (answers your first question)
Here i mean to say for child classes under A-B-C-D Ex: E child class, will only create seperate table if we select Doesnt Belongs to class Group, if we select Belongs To ClassThen Child class info will be stored in Same Parent Table A-B-C-D. Here A-B-C-D is Is a class Group
Hello sirisha,
From above Point Mentioned
Or if you still want to define child classes under A-B-C-D, you could select is a class group, and this again creates a separate table. (answers your first question)
Here i mean to say for child classes under A-B-C-D Ex: E child class, will only create seperate table if we select Doesnt Belongs to class Group, if we select Belongs To ClassThen Child class info will be stored in Same Parent Table A-B-C-D. Here A-B-C-D is Is a class Group
Updated: 6 Jan 2021 14:29 EST


Cognizant Technology Solutions
IN
Hi Pradeep,
- To store the Instances (work objects) in a separate table, select the class as "Is a class group".
- To store the Instances (work objects) in parent class table, select the class as "Belongs to class group".
- To store the Data (not instances) in a separate table (Or Default pega table), select the class as "Does not belongs to class group". eg: store the country names in a table.
Hope it clarifies your doubt.
Regards,
Tarun Kumar
-
MADHUMITHA G Benish Zehra Preeti Jaiswal Punam Rajebhau Taur PRATIBHA KUSABI and 17 More