Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts!
I need java api to get context-dependent "folder.id" from soft type OIR.
I have soft type id looking like "wt.doc.WTDocument|ru.pts.TechDoc|ru.pts.DesignDoc".
I found two methods:
but they require TypeInstance and i don't know how to get it without object.
There is posibility to get folder by PersistableAdapter, but the result is context-independent.
Maybe a bit late, but I'd do it this way:
WTContainerReference containerRef; // container you want the OIR forTypeIdentifier typeIdentifier = TypeHelper.getTypeIdentifier("wt.doc.WTDocument|ru.pts.TechDoc|ru.pts.DesignDoc");Folder oirFolder = (Folder) new InitRuleFacade().getValue(RuleConstants.ATTR_FOLDER_ID, typeIdentifier, containerRef);