Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

How to get Associated Change object of a WTDocument

RS_10128209
12-Amethyst

How to get Associated Change object of a WTDocument

RS_10128209_0-1712904699065.png

DOC111 - WTDocument name (refDoc)

Expected result --> Get associated changes 

 

QuerySpec qsLink=FlexibleChangeHelper.getFlexibleChangeLinksQuerySpec((FlexibleChangeItem) refDoc, FlexibleChangeLink.PARENT_ROLE, false, FlexibleChangeHelper.PROCESS_TYPE_ID);
QueryResult qr1 = PersistenceHelper.manager.find(qsLink);
System.out.println("Size of the Query Result for Associated Objects::"+qr1.size());

 

 

1 REPLY 1
avillanueva
22-Sapphire II
(To:RS_10128209)

I would look at the Change2Helper class. It should have a method given a Changeable (the document) to find its change object.  You never mentioned which change object your were looking for.

Announcements

Top Tags