cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

associate two document subtypes

ptc-4767031
1-Newbie

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????

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

KD
4-Participant
4-Participant
(To:ptc-4767031)

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

Top Tags