Profile picture for user Christian Zanardi

Hello Community !!

I would like to search models regarding :

1. The name and the Type Number of a model 

  • var searchItem1 = db.createSearchItem(Constants.AT_NAME, nloc, "L0*", Constants.SEARCH_CMP_EQUAL, false, true);
  • var searchModelType = new Array();
    searchModelType[0] = 176836;

2. I would like to filter the response with models in a spécific Group and alls the subgroups

Should I use a second SearchItem ?
Or may I get all the answers and test the group afterward ?

Thank you in advance for your advice !!


by Michael Wieczorek
Posted on Mon, 10/31/2022 - 08:21

Hi Christian,

your search is exactly described in the online help. Please check following method:

Group#ModelList ( boolean bRecursive, int[] typeNums, SearchItem p_searchSpec )

And here the example from help:

var currentDB = ArisData.getActiveDatabase()
 var currentLocale = Context.getSelectedLanguage()
 var searchItem = currentDB.createSearchItem(Constants.AT_NAME, currentLocale, "A*", Constants.SEARCH_CMP_EQUAL, false, true) //non-case-sensitive + search using wildcards
 var models = currentGroup.ModelList(true, [Constants.MT_EEPC, Constants.MT_ORG_CHRT], searchItem )


BR, Michael

by Christian Zanardi Author
Posted on Mon, 10/31/2022 - 13:31

Hi Michael,
This is exactly what I was looking for.
Thank you very much for your help


Featured achievement

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
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • PacMan


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