Profile picture for user jordanjt95

Hi everyone.

I'm writing a report and I need to launch the report from a Group.

From this group I need to get all the subgroups and eventually get all the EPC's and FAD's, so I'm trying to think about a solution (a recursive one might be the best option) but I'm not sure how it should be done.

Beside that, I'm using the "Childs()" methods, but I only get the subgroups and not the actual EPC or FAD I need.

Here is an example of the problem : 

(0)Group :

                 (1)sub group :

                                     (2)sub sub group:

                                                               (3)sub sub sub group 1 :

                                                                                               (4) Sub sub sub sub group 1

                                                                                                (4)Sub sub sub sub group 2:

                                                                                                                                                 EPC 

                                                                                                                                                 FAD

                                                              (3)sub sub sub group 2:

 

                                    

 If I launch the report from Group , I can get all the subgroups , but I can't reach the EPC and the FAD stored in the sub sub sub sub group 2

If someone has a solution for the problem, I would really appreciate !

Thank you.

by Kay Fischbach
Posted on Mon, 07/05/2021 - 10:30
var allEPC = theStartGroup.ModelList(true, [Constants.MT_EEPC]);
var allFAD = theStartGroup.ModelList(true, [Constants.MT_FUNC_ALLOC_DGM]);
var allEPCAndFAD = theStartGroup.ModelList(true, [Constants.MT_EEPC, Constants.MT_FUNC_ALLOC_DGM]);

The first parameter of the ModelList method tells the ARIS system whether or not you want to search recursively, and the second parameter has to be an array of model type numbers of models to look for.

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