RT

Hi,

I need help with this: I'm trying to create a new occurrence from an object definition like this

var newOccurrence = model.createObjOcc(symbol,objDef,origOcc.X(),origOcc.Y());

 

All those variables exist and are, I think, correct. But my occurrences are not created. And debugging I realized that my variable, new Occurrence, is invalid. It is like this: Aris Object (invalid).

 

So I think that something is wrong with the creation, maybe with one of my parameters. Anyone have experienced something like this?

 

thanks in advance,

 

Rafael

by Jens Heylmann
Posted on Tue, 08/14/2012 - 13:08

Hi Rafael,

you have to check if the symbol type is allowed for your object definition and model. Next check if the object type of the object definition is allowed for the model type of your model definition. Use the ARIS method help.

 

Last. Try to set the position parameters to zero or 1:

var newOccurrence = model.createObjOcc(symbol,objDef,1,1);

Regards,

Jens

0
by Rafael Tavares Author
Posted on Wed, 08/15/2012 - 14:18

Hi Jens, thanks for your response. I verified what you said. But I think everything is allright, because my symbolNum() is coming from another occurrence of an object which is exactly the same that I'm trying to create. And The object definition is fine, cause I'm also creating it via script, and it is created fine.

I tried setting the position to (1,1), but I still get the (invalid) thing.

My scenario is like this: I have to create, via script, an "AND" object in an "EPC" model. Besides, I have to create an occurrence of this new object, based on another occurrence within the same model. Later, I will remove the old occurrence. So the symbolNum and the position parameters are coming from this old occurrence. I'm getting the symbolNum like this: "oldOccurrence.SymbolNum()", which appears to be correct.

 

Any ideas?

 

0
by Jens Heylmann
Posted on Thu, 08/16/2012 - 08:40

Rafael,

not at the moment. Can you post more from your source code? 

/Jens

0
by Rafael Tavares Author
Posted on Thu, 08/16/2012 - 14:34

Well, thanks for the help. Unfortunately, I can't post more because there are strict rules at the company I work for. 

My script works and it returns the expected result. But I got curious about why the console shows the object like this.

 

 

0
by Christian Daller
Posted on Thu, 07/23/2015 - 14:48

In reply to by rltrafael

Hello,

I came across the same issue. I have a script that is working well evaluating some objects, On process interfaces however it gave me partly above issue.

Who knows what might be additional reasons for not being able to create occurrences apart from the above mentioned?

I am using ARIS version 97.0.0.958093. Thanks for your answers!

Christian

0
by Runé Becker
Badge for 'Mastermind' achievement
Posted on Wed, 07/29/2015 - 22:33

In reply to by cd-wimb

Dear Christian,

To get more attention with your question, it's better to post a new article and just refer to this rather old discussion by a link.

Since I am not developing report scripts I can't help you here except with the above advice.

Cheers

Rune

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • 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