associate two document subtypes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
associate two document subtypes
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.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do i need to put internal name of doca nd docy???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
