Author Topic: Scriptlets CAN modify the model database  (Read 3944 times)

MichPaule

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Scriptlets CAN modify the model database
« on: July 10, 2024, 09:46:29 pm »
EA 16.1.1628 (64bit) .QEAX database

According to https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_fundamentals/scriptlets.html:
Quote
Scriptlet Permissions
Code in Scriptlets cannot alter or update elements in the model database.  It can, however, read and update copies of the elements that are displayed on a diagram. Updates to elements made by Scriptlets are NOT written back into the model database.
My observation:
My test scriptlet modifies the value of an element's tag and the changed value immediately is visible in the database table t_objectproperties (checked with DB Browser for SQLite).
After closing the model and re-opening again the changed value is visible in the Properties tab (diagram containing scriptlet has not been opened).
To me is is clear that the scriptlet was able to change a tag value (which would be a great benefit for me).
But: How does this relate to the above mentioned restriction?

Would someone (Eve?) try to explain this discrepancy?
TIA

Michael

MichPaule

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: Scriptlets CAN modify the model database
« Reply #1 on: July 17, 2024, 06:10:25 pm »
Wow, 7 days and no replies  :-[
Looks like not so many people touched scriiptlets yet.

@Eve: Please comment on that briefly!
Thanks in advance  :)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13256
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scriptlets CAN modify the model database
« Reply #2 on: July 17, 2024, 06:46:13 pm »
Michael,

If you want to contact Sparx, you'll have to go through proper channels. This is a user forum, and Sparx employees only respond occasionally here.

Geert

MichPaule

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: Scriptlets CAN modify the model database
« Reply #3 on: July 17, 2024, 07:02:35 pm »
Yes Geert,

but which channel would be best?
It is presumably not a Bug and also it isn't a Feature Request.
So I have sent a mail to [email protected] hoping it will be answered.
In this case I will post the answer here.
The priority support is no way for me as our IT doesn't want to hand out the login data  :(

Michael

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13256
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scriptlets CAN modify the model database
« Reply #4 on: July 17, 2024, 07:12:16 pm »
If the documentation says "1+1=2" and you find that "1+1=3" then that counts as a bug for me.

You shouldn't worry too much about whether its a bug or a feature. Sparx will decide that for you anyway.
Simply use the bug report form. (I'm not sure if priority support really makes a difference with regards to bugs. A bug is a bug, regardless whether it was noticed by a "priority" user)

Geert

MichPaule

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: Scriptlets CAN modify the model database
« Reply #5 on: July 19, 2024, 04:05:08 pm »
Inquiry issued (#24077892).
Let's see what they have to say...

MichPaule

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: Scriptlets CAN modify the model database
« Reply #6 on: September 12, 2024, 03:37:43 pm »
Inquiry issued (#24077892).
Let's see what they have to say...
Update:
The issue has been confirmed and will be investigated further by our development team.
 ;)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Scriptlets CAN modify the model database
« Reply #7 on: September 12, 2024, 07:12:03 pm »
Good to know. So it will be fixed or not. Like a sack of rice will eventually topple in China.

q.