Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: timoc on November 02, 2022, 08:02:33 pm
-
Hi,
I came across this summit video from 2019 Repository Updates and Administration Made - Easy with Model Add-in Recipes (https://www.youtube.com/watch?v=n9tWUncuVGo) that claims:
"Save time and mitigate risk with this innovative and powerful library and its accompanying Easy-to-Follow and Extensible Recipe Book. Do in 4 lines what might take 50 - 60 lines of scripting with more Rigor and Precision. Take home a COMPLIMENTARY copy of the Recipe Book. "
The video demonstrates the advanced capabilities of the EA JS engine and Addin development that i would like to know more about.
Specifically:
- Shows the JS engine running an "off the shelf" JS library with sophisticated functionality inside a JS-Addin: Linq.js (https://github.com/mihaifm/linq).
- Shows a mature JS-Addin development process, including a form of unit test harnesses for model transformation.
Having a well developed and tested JS-Addin development methodology would go a long way to JS becoming the default scripting language. Especially when combined with point 1. Point 1 implies that there is a documented manual or automated transpilation (https://babeljs.io/docs/en/) method for porting "off the shelf" JS libraries to the EA JS environment or as a side-loadable web-assembly library.
I cannot find any recipe book or other documentation/manuals/whitepapers describing how to do any of these things. Does anyone know what ever happened to this?
-
Is there a source for that that doesn't come from a 49 minute video? I haven't watched that video in the past and I don't have the available time to watch the whole thing in hopes of finding out what you're referring to.
Here's our documentation for model add-ins.
https://www.sparxsystems.com/enterprise_architect_user_guide/16.0/add-ins___scripting/modeladdins.html (https://www.sparxsystems.com/enterprise_architect_user_guide/16.0/add-ins___scripting/modeladdins.html)
It's also worth saying the presenting in that video is a partner, so I don't have access to anything used to present that video.
-
Is there a source for that that doesn't come from a 49 minute video?
That is literally the same question i just asked!
I haven't watched that video in the past and I don't have the available time to watch the whole thing in hopes of finding out what you're referring to.
Here's our documentation for model add-ins.
https://www.sparxsystems.com/enterprise_architect_user_guide/16.0/add-ins___scripting/modeladdins.html (https://www.sparxsystems.com/enterprise_architect_user_guide/16.0/add-ins___scripting/modeladdins.html)
To be honest i also do not have the time (even when playing at 2x speed). I have had to occasionally look at videos from the summits for clues and inspiration because the documentation linked above barely explains how to create a JavaScript add in, and the white-papers/documents i have found (including EA16 model wizard examples) seem to be broken with EA16 (https://sparxsystems.com/forums/smf/index.php/topic,47053.msg274808.html#msg274808).
For example, this one slide (https://youtu.be/n9tWUncuVGo?t=2671) has more information in it about the javascript console and its methods, than is available in any of the published Sparx documentation i have access to. (https://sparxsystems.com/search/sphider/search.php?query=groupcollapsed&search=1&submit.x=0&submit.y=0).
It's also worth saying the presenting in that video is a partner, so I don't have access to anything used to present that video.
I kind of assumed that as this was presented at a summit, more information would be available somewhere inside Sparx. Or if not from Sparx then from community members who participated in that summit and did watch that video.
-
The slide seems to be very popular (opened 194 times in 10 months)...
q.