Book a Demo

Author Topic: UML Profiles and same name stereotypes on different metaclasses  (Read 5572 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
UML Profiles and same name stereotypes on different metaclasses
« on: October 04, 2018, 07:56:13 pm »
Hi,

I want to use let's say "MyType" stereotype on a number of elements e.g. a MyType SysML block and a MyType Part.
When I export the UML Profile, the resulting XML file is missing the parts' stereotypes definitions. It seems like EA doesn't like stereotype duplicates.

As a workaround I can create separate UML Profiles to embed in my MDG, but I was wondering if this is a known issue.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #1 on: October 04, 2018, 08:52:06 pm »
Have you tried specializing both SysML stereotypes from your MyType stereotype?

IIRC that should work.

Geet

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #2 on: October 04, 2018, 10:09:34 pm »
Hi Geert,

Sounds like a good idea except that I don't want the parts to have the tagged values set on the blocks.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #3 on: October 04, 2018, 10:48:20 pm »
So you really want two different stereotypes with the same name?

In that case, I don't think that is possible (nor a good idea)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #4 on: October 05, 2018, 06:05:27 am »
A stereotype always belongs to a profile. The FQN is always unique. The non-FQ name might be ambiguous.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #5 on: October 05, 2018, 10:56:45 am »
A stereotype always belongs to a profile. The FQN is always unique. The non-FQ name might be ambiguous.

q.
We ensure there is NO ambiguity.

Manage Complexity,
   .   .   Reduce Ambiguity,
   .   .   .   .   Eliminate Inconsistency!
TM


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: UML Profiles and same name stereotypes on different metaclasses
« Reply #6 on: October 05, 2018, 03:33:11 pm »
Thanks for the clarifications.
Consider a Hardware block, I wanted to have my SysML Block with a "Hardware" stereotype, and when I get the part's equivalent in the IBD, I would have liked to see this part with the "Hardware" stereotype as well.
As it currently stands, I have to differentiate the parts stereotype e.g. "Hardware part".

It's not a big issue and I'm keeping this approach based on your comments.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com