Author Topic: UML Profile - sharing a common set of tags  (Read 7120 times)

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
UML Profile - sharing a common set of tags
« on: March 20, 2014, 04:05:18 am »
In a UML profile, I have:
• A <<metaclass>> ”Class”
• A <<stereotype>> ”Obj” extending ”Class”
• Three <<stereotype>>s (”ProcessObj”,”ResourceObj”,”ReferenceObj”) specializing ”Obj”

Like this:


When I use the three <<stereotype>>s ”ProcessObj”,”ResourceObj”,”ReferenceObj”, they all have inherited the tags from  ”Obj” – so far so good.
BUT: the tags are not grouped according to the tag groups – in fact they don’t seem to have the tag groups (although the tags themselves are all there).

If I double check by including the ”Obj” in a toolbox in the MDG file, the ”Obj” does have the tags grouped properly.
I have many stereotypes sharing a common set of base tags. Is this not the proper way to do it?
I’m not familiar with how to use the Metatype, but have tried different variations without that solving this issue.
Does any body know how to do this (sharing a common set of tags)?
Also: Am I using the ”Generalization” connector in a wrong way in my UML profile?


« Last Edit: March 20, 2014, 04:56:51 am by svenderiknygaard »

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #1 on: March 20, 2014, 04:29:25 am »
Hi

I had a problem with tagged groups and from what I read it sounds similar to your issue but instead of specialising I needed to create multiple instances - as detailed below (multiple metaclass elements sharing the same name each with a stereotype extending... read on )

From my notes of from some time ago I found that the tagGroupings didn't work. I was building several different elements with their own (and different) sets of tagged values.

At the time I noted that a single metaclass can't describe the different groupings, and that is in fact the case. What is needed are as many metaclass elements ALL with the same name, and each with the _tagGroupings set according to the element (stereotype) they extend.

So I had N class diagrams (1 for each stereotype) which contained a metaclass class element and SHARING the same name as the others I was wanting to share and these were each extended by the specific stereotype.  Each metaclass element defined both the _tagGroupings and _tagGroups appropriate to the stereotype.

All of these diagrams are in the same profile package and all worked fine.

Hope this helps with your situation.

EXploringEA - information, utilities and addins

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #2 on: March 20, 2014, 05:03:12 am »
Thanks MrWappy,

I thought about that - but then I thought, There must be a smarter way  :-/

I will fall back on that, if I don't find other solutions.

(BTW, I updated my post with a picture of the profile's diagram  (apparently one cannot upload images directly to posts here?) )

I hope to get back to solve this issue tomorrow (There's also the Tagged Value connector in the profile toolbox?)

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #3 on: March 20, 2014, 06:19:54 am »
Let me know of any smarter solution you find.  I got to this solution after failing with various approaches, and then getting some help from Sparx support; it is a bit clunky but works fine and I don't need to do it so often to be a real issue.  

Although that doesn't mean there isn't another way.
« Last Edit: March 20, 2014, 06:21:16 am by MrWappy »
EXploringEA - information, utilities and addins

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #4 on: March 20, 2014, 07:17:47 am »
The model in the top post works except the grouping of tags is it  it ignored at the specialized stereotypes. The tags are there, just not grouped.
(In EA 1007)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #5 on: March 20, 2014, 07:25:32 am »
There was a post reply by one of the Sparxian which was dealing with that specific grouping. No idea how lucky you would be searching for it (Search button top left!) but you might give it a try.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #6 on: March 20, 2014, 09:15:37 am »
Quote
BUT: the tags are not grouped according to the tag groups
I'm fairly sure that was fixed for EA 11
The Sparx Team
[email protected]

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #7 on: March 21, 2014, 05:14:17 am »
Quote
Quote
BUT: the tags are not grouped according to the tag groups
I'm fairly sure that was fixed for EA 11
OK, sounds good, then I'll wait for EA 11. Can you indicate when this might be?
BTW: So the way, I used the specialization is OK?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #8 on: March 21, 2014, 06:36:06 am »
You could try with the V11 beta which is free for the public. And yes, your generalization looks ok. At least I did things like that in the past similarly.

q.

solenn

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: UML Profile - sharing a common set of tags
« Reply #9 on: April 24, 2014, 06:00:00 pm »
Hello,

I tried with version 11 build 1105 and it doesn't work.
The tags are grouped according to the tag groups in elements stereotyped "Obj".
The tags are not grouped according to the tag groups in the stereotypes ”ProcessObj”,”ResourceObj”,”ReferenceObj”.

Is it a bug ?

Thanks a lot,
Solenn