Book a Demo

Author Topic: Behavior != 'Internal Code' + broken JS Model add-in examples in V16.0.1605  (Read 3909 times)

timoc

  • EA User
  • **
  • Posts: 201
  • Karma: +14/-0
    • View Profile
Hi,

I had the bright idea of porting some of my scripts to a model based plugin, starting with the instructions here:
https://community.sparxsystems.com/component/k2/1277-enterprise-architect-15-model-based-javascript-addin

As it seems, ironically, that "behavior", as described for V15 above does something else now in V16. It may be that there is an error in the article, as when i used the 'Edit internal code' option instead, it seemed to do something. Edit 'Internal Code', or the definition of 'Internal Code' is also something that i can find no documentation on.

Then i started looking into the Example QEA model supplied with v16, referenced by the add-in documentation, where i found that the examples look to be broken. I have not checked, because that is as far as i went before i dropped the idea as to much effort.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
An alternative for these model-addins is my EA-Matic add-in: https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/releases

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Operations in EA have always had a 'code' and 'behavior' field. They have unfortunately been used for different things over the years. The model add-in always used the internal code,

Version 15, when the behavior editor was introduced tried to automatically switch between the two different fields as needed by various EA features.

Version 16 changed to just show both, I haven't checked the editor both model add-ins still work.