Hi Sandeep,
Use this code
publicstaticvoid getChildParts(WTPart parentPart) throws WTException
{
@SuppressWarnings("deprecation")
QueryResult queryResult= WTPartHelper.service.getUsesWTParts(parentPart, new LatestConfigSpec());
while(queryResult.hasMoreElements())
{
WTPart part=null;
Persistable[] persistable=(Persistable[])queryResult.nextElement();
part=(WTPart)persistable[1];
WTPartUsageLink partLink=(WTPartUsageLink)persistable[0];
System.out.println("ParentPart :-" + parentPart.getName() + " ChildPart :- " + part.getName());
getChildParts(part);
}
}
Regards,
Kaushik