Book a Demo

Author Topic: recursively changing tags on packages and artifacts  (Read 4136 times)

bohemius

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
recursively changing tags on packages and artifacts
« on: March 10, 2017, 03:23:52 am »
Hello,

I have an already created package model with packages which contain other packages which contain jar artifacts and I want to add tags to these in bulk. Basically what I want is to add a tag to top level package and have all the packages and artifacts that it contains marked with that tag as well.

I have marked these packages with stereotype if that helps, but these stereotypes are not in any profile and are not instantiated or anything, I simply marked the packages with stereotype in their properties hence the inheritance does not work as it is mentioned in the documentation.

Is this somehow possible?

-Jirka

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: recursively changing tags on packages and artifacts
« Reply #1 on: March 10, 2017, 06:17:55 am »
Jirka,

read up on UML profiles and MDG files.
You can define the tagged values per stereotype in the UML profile.
There is also an option to synchronize existing stereotypes to add the missing tagged values automatically to every elements having that steotype.

Geert

bohemius

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: recursively changing tags on packages and artifacts
« Reply #2 on: March 17, 2017, 08:27:04 pm »
Hi,

this is not very helpful and does not answer my question. Since I cannot modify existing UML profiles I did create a new one and imported it however I still have to change all existing elements by hand. Is there no way to change this in bulk?

Regards,

Jirka

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: recursively changing tags on packages and artifacts
« Reply #3 on: March 17, 2017, 08:49:23 pm »
Only if you are willing to script that. Profiles are not a suit you can change with the weather. They are targeted for a rather stable domain. Changing them need a lot of brain power.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: recursively changing tags on packages and artifacts
« Reply #4 on: March 18, 2017, 01:11:16 am »
Hi,

this is not very helpful and does not answer my question. Since I cannot modify existing UML profiles I did create a new one and imported it however I still have to change all existing elements by hand. Is there no way to change this in bulk?

Regards,

Jirka
If you read my response carefully you will notice that
A) it is helpful because you shouldn't be creating stereotypes on the fly like that without using UML profiles
B) I told you there is an automated way to fill in all missing tagged values automatically (there's also a manual one)

Yes you can change stereotypes in bulk, using scripts or direct database queries.

Searching the forum should yield some interesting results.
Another source of info is my library of vbscripts: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library

Geert