Community Tip - You can change your system assigned username to something more personal in your community settings. X
Good day all
Is there anyway that one can create epmdocs at higher revisions (eg D.1) by using the Java API. I could do it for WTDocs and WTParts using the Dataloader but I dont see any indication that one can use the dataloader for epm obejcts.
The code below shows how I am creating the epm doc.
Any help would be greatly appreciated.
public static EPMDocument createEMPDoc(Folder folder,String number, String name, String cadname,String type)
{
EPMDocument doc =null;
try
{
EPMContextHelper.setApplication(EPMApplicationType.toEPMApplicationType("EPM"));
doc = EPMDocument.newEPMDocument(number.replaceAll(" ","),name, EPMAuthoringAppType.toEPMAuthoringAppType("PROE"),EPMDocumentType.toEPMDocumentType(type),cadname);
FolderHelper.assignLocation(doc,folder);
PersistenceHelper.manager.store( doc );
}
catch (WTPropertyVetoException e)
{
e.printStackTrace();
}
catch (wt.pom.UniquenessException e)
{
e.printStackTrace();
}
catch (WTException wte)
{
wte.printStackTrace();
}
return doc;
}
Thank you,
Stefan