Question
2
Replies
1904
Views
Posted: November 1, 2017
Last activity: November 2, 2017
Closed
"Report on descendant class instances" option on Report Definitions
Created a application on the top of pega Frame work. Using one Report defination rule from framework in that "Report on descendant class instances" Option is checked and in that include implementation class only radio button checked.
But it is not pulling the records from my application.So how to know our class is implementation class ? and how to know the implementation class hierarchy.
Hi,
There is an API available getConcreteDescendantsInCurrentApplication(String className) which returns the list of implementation classes for a given FW class.
We can write an activity which includes a Java step and invoked this as below:
try {
String[] strImplClasses = tools.getDatabase().getConcreteDescendantsInCurrentApplication("IPA-Designs-Work");
if(strImplClasses ! = null) {
for(String tempClass:strImplClasses) {
oLog.infoForced("Implementation class::"+tempClass);
}
}
} catch(Exception ex){
ex.printStackTrace();
}