Profile picture for user ignaciocardenal

Hello community!

I´m very new in Aris an i´m trying to create a script that generates a ARIS model, having as asource an XML file.

I create all structures "softly" but i´m having problems due to create connections between objects into a model. This is my function to create these conections:


function conectar()


    var ml = oGroup.ModelList(true,null)   // obtain the models within the database

    var model=ml[0]; // I only have one model, so I obtain it

   var childGroup=oGroup.Childs( ); // obtain the child group within the database (only one)

    var objects=objects[0].ObjDefList(); // obtain all the objects in the databas (2 in this case)

    var objectA=c[0];

    var objectB=c[1];

    model.CreateCxnOcc(true,objectA,objectB,Constants.CT_USES,null); // creation of connection


These two objects have an occurrence in the model .

The code executes but it does not create any relationship.

What i´m doing wrong?

Please, could any of you help me?

Thanks a lot in advance!


by Ignacio Cardenal Author
Posted on Tue, 11/20/2012 - 13:36

Hello again!

I´ve just tried on this way to obtain the objects:

var objectA=getObjectInModel(model,"objectA");

var objectB=getObjectInModel(model,"objectB");

instead of:

var objects=objects[0].ObjDefList();

var objectA=c[0];

var objectB=c[1];

But it does not work



by Ignacio Cardenal Author
Posted on Tue, 11/20/2012 - 17:53

Hello Community.

I´ve solved my problem.

I was taking an invalid value to the connection type


I´m creating a Quick Model and that connection code is invalid because quick Model only has available two connection types. (codes 504 and 11).

Best regards




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


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