Knowledge Sessions: ARIS Scripting
Register
ARIS Process Mining in action - Live Demo
Register

View all
Profile picture for user jordanjt95

Hi everyone

I'm trying to create object occurences on a model using the following function : 

function createOcc(model,oObjDef,nType){
    
    var obj = model.createObjOcc(nType,oObjDef,oX,oY,true);
    return obj;
    
}

Before sending the model to this function, I'm storing the model in a variable by using this line of code :

var app2systemCatalog = g_oDatabase.FindGUID("a918c921-1727-11ec-619c-d63b1f542671");

After running my script I get an error on the first line of the "create Occ" function, the error looks like this :

Apparently , my model is "invalid" , I don't understand why.

If someone knows where the problem could be, I'd appreciate some help.

Thank you.

by M. Zschuckelt
Posted on Mon, 09/20/2021 - 21:12

Hi,

did you check with app2systemCatalog.isValid() if you received a valid result? Maybe you got the GUID of the model wrong? Or you don't have read permission on that model?

0
by Jordan Tangy
Badge for 'Question Solver' achievement
Author
Posted on Wed, 09/22/2021 - 12:39

In reply to by M. Zschuckelt

Hi , thank you for your answer.

I checked a couple of times that the GUID model is the right one.

It might be a read permission problem, I'll check that. 

Thank you !

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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