cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

extract parent and child relationship table

gnatesan
3-Visitor

extract parent and child relationship table

how to extract parent and child relationship table.


for example : An assembly abc.asm has 3 members. a.prt, b.prt and c.prt (the reference could be anything like suppressed member, a regular member, substitute relationship) etc


query is going to used for datamigrationfrom ProIntralink 8.0 to windchill 9.1.


could be helpful,if anyone share your suggestion\code\ideas.


Regards


Gangadharan.N


1 REPLY 1

If I caught the question right:

ConfigSpec configSpec = new LatestConfigSpec();


QueryResult qrMY = EPMStructureHelper.service.navigateUsesToIteration(epmDoc, null, false, configSpec);
do
{
if(!qrMY.hasMoreElements())
break;


Persistable apersistable[] = (Persistable[])(Persistable[])qrMY.nextElement();
Persistable persistable = apersistable[0];
Persistable persistable1 = apersistable[1];


if((persistable instanceof EPMDependencyLink) && (persistable1 instanceof EPMDocument))
{
EPMDependencyLink epmdependencylink = (EPMDependencyLink)persistable;
epmTop = (EPMDocument)persistable1;


System.out.println( "\tEPMDoc Number: "+ epmTop.getNumber() + "| EPMDoc Name: " + epmTop.getName());
System.out.println( "\tEPMDoc CADName: "+ epmTop.getCADName() + "| EPMDoc DocType: " + epmTop.getDocType());
System.out.println( "\tEPMDoc Version: " + epmTop.getVersionIdentifier().getValue() + "."+epmTop.getIterationIdentifier().getValue()+"\n");
}
} while(true);

L Jett

Announcements