I have been trying to get process-by-flow for my functions object i.e. Top to bottom and left to right, but I fail to do so. I have been using SORT_GEOMETRIC, but I didn't get the desired output. 

funcDefs = ArisData.sort(funcDefs, Constants.SORT_TYPE, Constants.SORT_GEOMETRIC, Constants.AT_NAME, g_nLoc);

where funcDefs is an array of function defination present in a model.

Can any one help me with the same ?  

Thanks and Regards.

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 03/08/2021 - 13:32


you can only sort occs by X/Y...

Regards, Robert

by Kay Fischbach
Posted on Mon, 03/08/2021 - 13:51

Edit: this is for what to do after you fixed what Robert said (use object occurrences instead of object definitions):


SORT_GEOMETRIC only sorts occurrences by the distance between

  • an invisible null-point in the uppper left corner of your model
  • the upper-left corner of occurrences

This probably is not what you want.


What you want is to first sort them by their y-coordinate with SORT_Y.

You can imagine this like

  • drawing a horizontal line at the top of your model
  • drawing a horizontal line at the top of your occurrence

and measuring the distance between those two lines.

Then you sort them by their x-coordinate with SORT_X

You can imagine that linke

  • drawing a vertical line at the left side of your model
  • drawing a vertical line at the left side of your occurrence

and measuring the distance between those two lines.

In your code this would look like

funcOccs = ArisData.sort(funcOccs, Constants.SORT_Y, Constants.SORT_X, g_nLoc);


by M. Zschuckelt
Posted on Mon, 03/08/2021 - 15:53

Maybe the standard report "Output objects in the sequence of modeling (model graph)" can give some inspiration? The source code is open.


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 icon-lock