AR

Hi ,

I want to create a connection between entity type object and data collection object in table type model.

I am trying to create connections on the [Table type] model, script is running without issues, no errors or so, but there is no connections created.

 

Note: 1)created_entity means occurence of created entity type object.

          2)created_collection means occurence of created data collection object.

 

var cxnPoints = astCxnPoints(created_entity,created_collection); //user defined function

       

 var cnx = model.CreateCxnOcc(created_entity,created_collection,Constants.CT_DEPICTS_1,cxnPoints);

function astCxnPoints(entity,collection) {

     var startXPos = entity.X(); // here starting point of connection/relationship is entity.

     var startYPos = entity.Y();

   

     var endXPos = collection.X();

     var endYPos = collection.Y();

   

   

   

     var points = new Array();

     points[0] = new java.awt.Point(startXPos,startYPos);

     points[1] = new java.awt.Point(endXPos,endYPos);

   

     return points;

 }

 

 

I am getting null in cnx variable.

If I will  make data collection object as a source and entity type object as a destination then it is working fine but I want to make entity type as a source object in this case it is not creating connection.

see below mentioned case in which connection is created after changing source and destination.

var cxnPoints = astCxnPoints(created_entity,created_collection); //user defined function

 

var cnx = model.CreateCxnOcc(created_collection,created_entity,Constants.CT_DEPICTS_1,cxnPoints);

 

function astCxnPoints(entity,collection) {

 var startXPos = collection.X(); // here starting point for connection/relationship  is collection.

 var startYPos = collection.Y();

 

var endXPos = entity.X();

 var endYPos = entity.Y();

 

var points = new Array();

 points[0] = new java.awt.Point(startXPos,startYPos);

 points[1] = new java.awt.Point(endXPos,endYPos);

 

return points;

 }

 

but I want to make entity type object as a source. 

relationship between entity type and data collection should be "Depicts".

Please suggest. your one suggestion can resolve my high priority issue so please help me guys.

Please let me know in case you want more clarification.

 

Thanks,

Ankit

 

 

 

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