JP

Dear all,

I am very new to ARIS and I am diving immediately into a problem. I am using ARIS 10.

I am rewriting a old report, where I want to put some shared methods in a seperate JS common file. 

Following the following guide:
https://www.ariscommunity.com/users/rbeddoe/2012-01-12-object-oriented-programming-aris

So, I have this file now in common, which I have imported into the report, but still intellisence is unable to find my object of class in JS. 

Is something changed since that person made the guide back then?

by Jan Pieten Author
Posted on Fri, 10/21/2022 - 13:46

I have found out that intellisence does not really work well with identifying which objects are referenced. Tried my custom created class for the link above and eventually I did have access to the properties. However, no I am facing the issues that I can only access properties as Functions, but passing parameters to this functions in somehow not allowed. Anyone knows anything about this?

1
by M. Zschuckelt
Posted on Thu, 11/24/2022 - 19:48

It's a bit tricky, trying to use Javascript in an object-oriented way, because actually it is a functional language and very different from object-oriented languages like e.g. Java. To use a function you first need to instantiate the class with new, which calls the constructor and instantiates all the functions on the returned object. It was an eye-opener for me when I started to learn about Javascript and functional programming paradigms.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • BH
  • 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