Profile picture for user fquirant

Hi.

To create a version of a document in ARIS ADS through a report I am using the method updateDocumentContent ( ADSDocument document, ADSDocumentMetaInfo documentMetaInfo, InputStream content, String changeDescription ).

In another report I would need to retrieve the value of changeDescription. It's possible? Can't find the proper method in ADSDocument or ADSDocumentMetaInfo classes.

Thank you

by Nikita Martyanov
Posted on Sat, 06/05/2021 - 18:43

Hi Francisco,

I'm not sure, but you can try ADSDocumentMetaInfo.getDescription().

---

BR, Nikita

0
by Francisco Quirantes Author
Posted on Sun, 06/06/2021 - 13:36

In reply to by billie1989

Hi Nikita.

The method ADSDocumentMetaInfo.getDescription() returns the description of the document but it is the same for all versions of that document.

I have also tried with custom attributes but the same thing happens.

Regards.

 

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 06/07/2021 - 09:06

Hi.

hm, you can get the versions themselves with "ADSRepository.getAllDocumentVersions" - and if you then output the description perhaps ?

Regards, Robert

0
by Francisco Quirantes Author
Posted on Mon, 06/07/2021 - 12:17

In reply to by rgoldenbaum

Hi Robert.

I have tried but for each version it always shows the same description.

var versions = repos.getAllDocumentVersions(myfolder, title, namedoc)

for (var k=0; k< versions.length; k++)

{  

var revision = versions[k].getRevision();  // Changes for each version

var metainfo = versions[k].getDocumentMetaInfo();

var desc = metainfo.getDescription();  //Always the description of the document and not the change-description of the version

}

Regards.

 

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock