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

View all
LB

Can anyone tell me if there is a way in ARIS reporting to display a total or count of the objects in a model?  We have a report that lists all applications from a model, and I would like to put a total count at the end of the report, but I cannot find a way to do this.  Thanks.

by Eva Klein
Badge for 'Community Team' achievement
Posted on Wed, 07/20/2011 - 15:09

Hi Lisa,

the method "ObjOccList ( )"  returns all object occurrences in the model. The source code below gives you the count of the objects:

var oObjOccs = oModel.ObjOccList();
var counter = oObjOccs.length;
//.......

NOTE: This source code count all objects, also connectors. If you only want special objects you can use this methode:

 var ospecialObjOccs = oModel.ObjOccListFilter(Constants.OT_FUNC);
var counter = ospecialObjOccs.length;
//......

I hope this will help you.

Regards

Eva  

0
by Lisa Bame Author
Posted on Wed, 07/20/2011 - 20:43

Thank you Eva - I am not very familiar with Javascript.  I added the 2 lines but I get a syntax error due to oModel not being defined.  Not sure if I am placing the code in the wrong place or if I need addtional source code to define oModel...?

0
by Lisa Bame Author
Posted on Wed, 07/20/2011 - 20:47

Actually just being able to have the number of entries in my data table would be ideal...

0
by Eva Klein
Badge for 'Community Team' achievement
Posted on Thu, 07/21/2011 - 07:56

Yes you must define "oModel". I give you an example below:

var oModels = ArisData.getSelectedModels();
// your source code
//......
counter(oModels);
function counter(oModels){
    for (var i=0;i<oModels.length;i++){
        var oModel = oModels[i];
        var oObjOccs = oModel.ObjOccList();
        var ospecialObjOccs = oModel.ObjOccListFilter(Constants.OT_FUNC);
        var counter = ospecialObjOccs.length;
        //.....       
     } 
}

What exactly do you mean by "entries"?

0
by Eva Klein
Badge for 'Community Team' achievement
Posted on Thu, 07/21/2011 - 08:06

Hi Lisa,

make sure you join the Reports & Macros group. There you will find additional tutorials and a list of free ARIS reports and macros, that will help you to find an easy way to the ARIS Scripting world:-).

Regards

EVa

0

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