NE

Hi all, I have a problem I want to show the name of connected application system type in all function in EPC but I faced this error "TypeError: Cannot find function ObjDef in object . (Listing Attributes of process and activities #75)"

when  I add ObjDef().Name(nLocale) to line 75  as appeared in  attached picture and without add it I get something like ID  ex: 'Lcom.aris.modeling.co mmon.serverremoteapi. cscommon.webreportba se.reportobjects.IObjDef ;@530d5895'

 

 

 

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 04/14/2022 - 12:58

Hi,

ObjDef().getConnectedObjs([Constants.OT_APPL_SYS_TYPE])  return object defs and noch obj occs...

And "connectedObj" is an array now and not a single object - so you could output:

connectedObj[0].Name(,,,)

BR Robert

 

0
by nour elenein Author
Posted on Thu, 04/14/2022 - 13:18

In reply to by rgoldenbaum

Hi Robert thanks for your assestant, now I am  facing an other error 

TypeError: Cannot call method "Name" of undefined

 

 

here is the output when  adding [0] without  .Name(nLocale)

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 04/14/2022 - 13:56

Yes well, you could have some functions without connected system etc.

oObjDefList_System = ObjDef().getConnectedObjs([Constants.OT_APPL_SYS_TYPE]);

if (oObjDefList_System.length > 0){

     oObjDef_System = oObjDefList_System[0]   // or iterate through all found systems ?

     ...

}

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