AL

Hi all,

I have tried different ways of obtaining the occurrences of an object but I only get connections. When I say occurrences I mean those seen on any object when right click:

I have tried different ways of bringing all the occurrences of an object, but the most I get is the relationships checked from the connections section.



My code:

var objConect = objOcc.getConnectedObjOccs (null, Constants.EDGES_INOUT);

for(var j=0; j<objConect.length; j++) {

objConect[j].getObjDefName(-1)

Thanks in advance, regards

by Kay Fischbach
Posted on Fri, 09/13/2019 - 09:04

That's because you're staying on the occurrence level of the object.

Of course a single occurrence can only tell you more about what surrounds it, within the same model.

Try replacing the line

var objConect = objOcc.getConnectedObjOccs (null, Constants.EDGES_INOUT);

with the line

var objConect = objOcc.ObjDef().OccList();

Described in words: From your single occurrence in some model, you hop to the object definition of the object. The object definition isn't part of any model, instead it resides inside the ARIS Explorer next to models.

The object definition is in a 1:n relationship with the occurrences, meaning there is one object definition that holds attribute values such as the object name and there can be n many occurrences that make use of the object defintion.

This object definition can tell you all about where those n many occurrences are located, and you can ask for that with the OccList() method.

 

 

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