I've been trying to delete the connection definitions that do not have any occs from the DB via scripts. While I tested that it works in the normal cases, my piece of code below doesnt work when the connection definitions are due to the connections created in matrix models!

var ObjDefs = ArisData.getSelectedObjDefs();

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

    var CxnDefs = ObjDefs[i].CxnList();

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

        var res = CxnDefs[j].Delete(true);



In case of matrices, this piece of code deletes the cxn definitions even though the occ is in the matrix model.

Anybody who could help me ? ASAP would be great :)


by Amol Patil
Posted on Fri, 01/20/2012 - 16:26

Hi Nidhi,

In Matrix model there are no occurrences. Matrix model shows relationships between Object Definitions, and the connections between them are Connection Definitions. This is why your code is deleting the connections. You should add one more check, if the connection equals to the any connection in Matrix model, don't delete it.


Amol Patil


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