Can anyone please share a piece of code to sort the function objects occurring in an EPC with a user-defined attribute (multiline text). For example consider a user-defined attribute frequency or step number.

Thanks in Advance.

by Kay Fischbach
Posted on Mon, 01/22/2018 - 11:17


(I had to put the report script part into a txt file because of long comment lines. It would be unreadable otherwise. The txt file should be attached to this comment)

File attachments
by Tricarico Romain
Posted on Mon, 01/22/2018 - 20:59

Hello Mister,

We have a script to use on a model to define the order of occurrences. The order is written in an attribute of the model (because of object reusing). You can define for every model type the objects and symbols to include or exclude in the ordered list.

Then, a java script function (to copy in your own scripts) is provided. This function takes an occurrences list in param and return the list ordered regarding the order defined.

Please, find attached a short presentation of the script.

Unfortunately, this script is not free of charge. If you are interested. Contact us on

Best Regards.

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Tue, 01/23/2018 - 08:56

Ahm, this is really quite easy !

oObjOccList = oModel.ObjOccListFilter(Constants.OT_FUNC);

// sort by name

oObjOccList = ArisData.sort(oObjOccList, Constants.AT_NAME, 1033);

// sort by identifier

oObjOccList = ArisData.sort(oObjOccList, Constants.AT_ID, 1033);


And you can replace the attribute constant also with any number of a self defined attribute (but please take care to either use the GUID as provided by Kay or check if the number is stable when moving between servers)

BR Robert


Featured achievement

You blog more than you breathe, and your articles stand out: Create 20 more articles, receive very good feedback and stimulate conversations
Recent Unlocks


Weekly | All-time
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