Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
i have two subtypes of document '"docA" and "docY".In a expression robot in a workflow I have to associate the two document subtypes.How do i do it????
Solved! Go to Solution.
Hello
it depends of the type of link you want to use, if you want to checkout/in objects ... etc
but for example:
WTDocumentUsageLink link = WTDocumentUsageLink.newWTDocumentUsageLink
(docA,DocY);
PersistenceHelper.manager.store(link);
regards
Hello
it depends of the type of link you want to use, if you want to checkout/in objects ... etc
but for example:
WTDocumentUsageLink link = WTDocumentUsageLink.newWTDocumentUsageLink
(docA,DocY);
PersistenceHelper.manager.store(link);
regards
Do i need to put internal name of doca nd docy???
I depends of the API used.
but in this case , it is directly the 2 WTDocument objects that you want to link.
there's an other API to get the WTDocument from the internat object identifier
I am assuming that the object of the type Doc a and Doc y is already created.
After that you have to check out the the parent document and after that you can use the WTDocumentUsageLink.
If you didnt check out the parent document then it may throw an error