Profile picture for user martin.miskovic

Hello everybody,



sorry if it this is a trivial question, but I think I looked everywhere for an answer without success.



I know how to get data from Objects, Models or Groups that user selects, as seen here (for people who do not know):

http://www.ariscommunity.com/users/edwv/2011-03-23-which-symbolsconnections-are-used-model



In my report, from these 3 options I always get an array of ObjDef-initions.

From ObjDef I would like to get all its ObjOccurences

​and then get an array of Models where this ObjDef occurs. (Preferably filter these models by type if possible.)



This is a bit different approach. Everywhere else I see people listing data from already selected models.

Do you have an ideas?



Thank you for your time.

Martin

by Ilya Seletkov
Posted on Sat, 11/08/2014 - 06:02
Hello.
Var aModels = [];
Var aObjDefs = ArisData.getSelectedObjDefs
For (var I=0; I<aObjDefs.length; I++)
{
Var oDef =aObjDefs[I];
Var aOccs = oDef.OccList ();
For (var j=0; j <aOccs.length; j++)
{
aModels.push(aOccs [j]);
}
}
aModels.Unique ();

 

0
by Martin Miskovic Author
Posted on Mon, 02/09/2015 - 17:13

Hello Ilya,

with this script I can get only Object Occurences on various models.

My question was if I am able to get list of Model data types (or at least Model GUID) where the ObjDef has occurence.

Judging by the ARIS Script help, this seems to be impossible (using 7.2).

Martin



 

0
by Ilya Seletkov
Posted on Mon, 02/09/2015 - 17:33
Hello. Sorry. This is my mistake. See bold string.   var aModels = []; var aObjDefs = ArisData.getSelectedObjDefs For (var i=0; i<aObjDefs.length; i++) { var oDef =aObjDefs[i]; var aOccs = oDef.OccList(); For (var j=0; j <aOccs.length; j++) { aModels.push(aOccs[j].Model()); } } aModels = ArisData.Unique(aModels);
0
by Martin Miskovic Author
Posted on Mon, 02/09/2015 - 20:03

Thank you very much Ilya,

I did not realize I can call Occ methods on ObjOcc object type.

Martin

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