ARIS User Group Deutschland (German only)
Register
ARIS Process Mining in action - Live Demo
Register
AGNL Thema-sessie Architectuur (Dutch only)
Register

View all
MS

Hi All,

We are using ARIS Business Architect 7.1

My team has written a script which is supposed to sort a number of objects (Requirement Object) by the attribute Identifier and the objects are to be placed at location on the canvas in the form of a matrix, but as per the sorting done based on the identifier.

Sorting of Attribute is done through a function for the variable  

var occs2 = model1.ObjDefListByTypes([Constants.OT_REQUIREMENT]);

Along with sorting of the array as per the identifier, the following variable is also sorted, the reason for this being: we are not able to use the method SetPosition for the variable occs2, but can be set for the below variable.

var occs = model1.ObjOccListBySymbol([Constants.ST_REQUIREMENT]);

The debugging displays that sorting of both the variable array is happening as expected, however, when the report is executed on a model, objects appear on the canvas as per the matrix layout, but the placement of objects is not as per the sort executed.

 

Following is the workflow:

1. In a model, place 20 RO's at random positions.

2. Save and close the model

3. Execute the report on the model

4. RO in the model appear in matrix form (Not as per the sorting based on Identifier).

 

We looked at http://www.ariscommunity.com/users/kylekatarn/2011-01-31-trying-set-occurrence-position-setposition-method , but could not figure out why the sorting does not reflect for attribute placement.

 

Any help is highly appreciated.

 

Another observation: when we get the pixel value of the object on the canvas. Object appearing at the same position on different canvas return different value.

Example: RO1 and RO2 are objects on model1 and model2 respectively and appear to be at the same position. However on getting the pixel values: RO1 in model1 has position of (972,1526), whereas RO2 in model2 has position of (575,1526).

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • Profile picture for user syarafuddinhilmi
  • PacMan

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