A-,B-,C-, are three classes and follow pattern inheritance now A is a class grp ,b and C are belongs to a class group,i create a RD in class A and execute in Class C what will be the result?
Hi @TanyaS58
In Pega, pattern inheritance allows classes to inherit properties and rules from their parent classes in a hierarchical manner. Given that you have three classes (A, B, and C) following pattern inheritance, where A is a class group and both B and C belong to the class group A, the situation can be summarized as follows:
- A-: Class group (root class)
- A-B: Class belonging to class group A
- A-C: Class belonging to class group A
When you create a Report Definition (RD) in class A and then execute this RD in class C (A-C), the following points are relevant:
- Pattern Inheritance: In pattern inheritance, a class inherits rules from its ancestor classes following the class hierarchy.
- Class Group: The class group (A-) serves as a container for the instances of the classes within it, allowing these instances to be accessed and reported on collectively.
Executing RD in Class C (A-C)
When you execute the Report Definition created in class A from class C, the result will depend on the data structure and the specific query defined in the Report Definition. Here’s what generally happens:
- The RD defined in class A is designed to query instances of the class group A and its subclasses.
- Since A-C is a subclass of the class group A, executing the RD in class C will include instances of class C (A-C) in its result set.
- Additionally, it will also include instances from other subclasses of class group A, such as A-B, unless the RD is specifically filtered to exclude those.
Result
The result of executing the RD in class C (A-C) will include data from:
- Instances of class A-C.
- Instances of class A-B (if any).
- Any other instances belonging to the class group A.
If the RD has specific filters or conditions applied, those will determine the exact set of instances returned. Without additional filters, the RD will likely return all instances within the class group A, encompassing both A-C and A-B.
Example Scenario
Assume the RD is designed to fetch all instances from the class group A:
- Instances of A-C: Instances specific to class C.
- Instances of A-B: Instances specific to class B.
If you run this RD from class C, you will see a result set including all the instances of both A-B and A-C classes, because they both belong to the class group A. If you only want instances of class C, you would need to apply a filter to the RD to restrict it to instances of class C specifically.
In summary, the RD will include instances from all subclasses of the class group A, including both A-C and A-B, unless specifically filtered otherwise.
@TanyaS58
Answer is because of pattern inheritance it will give you the result all instances created with Class group A and also with A-C & A-B.
This checked all possible belongings of a class group.


