HR

Hello,

I would like to find out if there are any free textes or notes in my model. I've got my current model (oCurrentModel) from a list of models (aModels). Now I want to know the number of notes (nNotes) in this model.

In the ARIS help I found the functions:

OccList(): Returns a list of all occurrences of the free-form text in models.

OccListInModel(model): Returns a list of all occurrences of the free-form text in the specified model.

So I wrote the following lines:

aModels = oCurrentGroup.ModelList(true);

for (var m=0;m<aModels.length;m++)

{

  oCurrentModel = aModel[m];

  aNotes = oCurrentModel.OccList();

  nNotes = aNotes.length;

}

 

On the line "oCurrentModel.OccList()" I always get an error: "TypeError: Cannot find function OccList in object Model@..." The same comes with "oCurrentModel.OccListInModel(oCurrentModel)"

I'm sure, I make a mistake. But I don't know, what is my mistake. Is there anybody who can help me?

Many thanks. Holger

by Florian Rese
Posted on Thu, 11/03/2016 - 09:10

Hi Holger,

Have you tried using TextOccList()? This should return an array of all the free text objects used in a model. The method OccList() returns all ARIS objects as per my understanding.

Regards

Florian

 

0
by Holger Reidemeister Author
Posted on Thu, 11/03/2016 - 15:10

Hi Florian,

many thanks for your idea. That works. Now I'm one big step forward. But now I get more than expected. Can you please (or anyone other) tell me how I can find out, which note is a normal note and which is a sticky note?

Regards

Holger

0

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