There is a new comment on your post!
If this comment helps you, consider marking it as best reply.
AC

Hello,

I'm trying for hours to get all connections of an occurrence (CxnOccs) within a macro. I've read the ARIS help page for the Designer class (Macro Object Model) and it doesn't help much:

 

getIncomingCxns(Model, ConnectableOcc)  -> BaseCxnOcc[]

getOutgoingCxns(Model, ConnectableOcc) -> BaseCxnOcc[]

getTarget(Model, BaseCxnOcc)  -> ConnectableOcc

getSource(Model, BaseCxnOcc) -> ConnectableOcc

Isn't this a loop?

What's the function that gives me the connection occurrences?

Thanks

by Edwin Verstraeten
Posted on Thu, 01/20/2011 - 22:28

 

Hi Kyle,

Try this. It gives you two arrays. One with incoming and one with outgoing connection occurrences.

Have fun,

Edwin

 

var oObjOccs = Context.getSelectedObjOccs();

for(var i=0;i<oObjOccs.length;i++) {

    var oModel  = Designer.getModel(oObjOccs[i]);

    var oInCxns = Designer.getIncomingCxns(oModel, oObjOccs[i]);

    var oOutCxns = Designer.getOutgoingCxns(oModel, oObjOccs[i]);

}

0
by Deleted User Author
Posted on Sat, 01/22/2011 - 20:17

I now understand my mistake. Object occs inherit from ConnectableOcc's therefore there is no loop.

Thank your for pointing me in the right direction.

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