XG

Hi everyone,

I am working on a report, where I find all the documents in ADS and then delete some of them. In oder to find which documents should be deleted, I have to check the attributes of the ADS documents, for example the creation time

image

I know there are some functions that might be useful, but how to find the object with format ADSDocumentAttribute at first?

image

hope someone can give some suggestions :)

Thanks a lot.

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Wed, 11/27/2019 - 08:10

Well, you have to go over some steps:

oADSDoc_1 = oADSRepository.getDocumentByLink(oObjDef.Attribute(Constants.AT_ADS_LINK_1, g_nLoc[0]).getValue());

oADSContent_1 = oADSDoc_1.getDocumentContent();

oMetaInfo_1 = oADSDoc_1.getDocumentMetaInfo();

aoAttr = oMetaInfo_1.getAttributes()

Everything from the ARIS help :-)

Regards,

Robert

0
by XT G Author
Posted on Wed, 11/27/2019 - 14:44

In reply to by rgoldenbaum

Hi thank you for your reply

But I have already tried this and the return value of getAttributes is always empty( result: "[ ]").

Maybe the creation time is not attribute of ADS document? 

Thanks again 

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Wed, 11/27/2019 - 15:27

Ok, who would have thought that those are, well, interesting...

oMetaInfo_2.addAttribute ("Test", "Value of test")   just adds during runtime such an attribute which can then be read with the methods above etc. But this does not really helps much...

There really seems to be no method to get the existing attributes like creation time for those documents. Perhaps there is something for this in APG...

0
by Srinivas CH
Posted on Tue, 03/22/2022 - 14:23

Did you get solution for this question?

 

0

Featured achievement

Explorer
Take a tour! Learn more about the different ARIS Community areas and ARIS editions.
Recent Unlocks
  • KY
  • ДС
  • Profile picture for user lunin_o
  • DN
  • OG
  • PacMan

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