Book a Demo

Author Topic: automatic tag update after model change  (Read 3579 times)

PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
automatic tag update after model change
« on: February 24, 2020, 01:18:32 am »
Hi

I work with metamodel and add many custom properites.
These properties are then downloaded via sqla to code-generating applications.
However, I have a problem with changes in the metamodel
If I change the name of the property or add a new one, then I have to remove and add the stereotype that has this property (in the target diagrams)
After this operation I have new property but all values have been lost.
I could write an update using sql, but
is there any code in the scripting tool built into EA
to do it automatically?
Or do you have any fragments from which you could exit to do such an update automatically?

In scripts I can navigate the package structure,
add tags but snippets of code to start with
would be appreciated.

I was looking in the forum, but I found only the info that such code would be useful, and people now click on such changes manually.
Unless I was looking badly :)

I will be grateful for any tips

Peter

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: automatic tag update after model change
« Reply #1 on: February 24, 2020, 03:44:48 am »
Have you tried Synch Stereotype from the context of the stereotype in a toolbox?

q.

adepreter

  • EA User
  • **
  • Posts: 190
  • Karma: +10/-10
    • View Profile
Re: automatic tag update after model change
« Reply #2 on: February 26, 2020, 02:51:28 am »
Labnaf (www.labnaf.one) includes a customization workbench to ease language customization.

There are also commands to rename and delete tagged values as you wish, translate any language to any language....

PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: automatic tag update after model change
« Reply #3 on: February 27, 2020, 06:08:10 am »
Thanks
I looked on Labnaf

It looks like a bigger tool, I definitely need to look at it more closely, because it's worth it.
I will do it on days and look for tag updates

Thank you

PiotrS24

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: automatic tag update after model change
« Reply #4 on: February 27, 2020, 06:37:48 am »
Have you tried Synch Stereotype from the context of the stereotype in a toolbox?
hm

I found this in documentation - I thing that You write about this

https://www.sparxsystems.com/enterprise_architect_user_guide/15.1/model_domains/synchronizetagsandconstrain.html

It resolve my problems, thanks ...

But, is it possible to write a script that the author himself reviewed the model and applied the changes?
It was enough to call this function as many times as I have defined stereotypes in my metamodel.
So can this function be called from a script? and if so, what it is called
Thanks Piotr