Book a Demo

Author Topic: How to reference UML/SysML metaclasses?  (Read 4003 times)

csoltenborn

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to reference UML/SysML metaclasses?
« on: September 04, 2020, 07:29:55 pm »
Hi,

I'd like to build a model which contains a "Process" class, and that class shall reference the "Activity" metaclass of the UML metamodel (proposed reference name: "formalization").

How can I do this, i.e., how can I access the UML/SysML metaclasses from class diagrams? I tried to "Add an element" via the context menu, but I only have access to the classes I defined myself...

Thanks in advance
Christian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to reference UML/SysML metaclasses?
« Reply #1 on: September 04, 2020, 08:26:00 pm »
Depends on your EA version. From V14 on you have to deal with Perspectives. Before you just need to turn on the MDG and can access the toolbox from the context menu or enable it from the More Tools in the toolbox options.

q.

csoltenborn

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to reference UML/SysML metaclasses?
« Reply #2 on: September 04, 2020, 09:01:02 pm »
Hi,

thanks for the answer... I'm on 15.2. Could you elaborate a bit on your answer? If I choose Perspective/UML/Structural (is that what you meant?), a wizard opens which allows me to create class diagrams etc. (i.e., instances of the UML metamodel), but I'd need the metaclasses themselves (and I think that this should be possible)...

Thanks in advance
Christian

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to reference UML/SysML metaclasses?
« Reply #3 on: September 04, 2020, 09:02:18 pm »
You can download the full UML metamodel as an xmi from OMG.org and then import that into EA.

Not sure if they do the same for SysML

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to reference UML/SysML metaclasses?
« Reply #4 on: September 04, 2020, 09:42:26 pm »
Hi,

thanks for the answer... I'm on 15.2. Could you elaborate a bit on your answer? If I choose Perspective/UML/Structural (is that what you meant?), a wizard opens which allows me to create class diagrams etc. (i.e., instances of the UML metamodel), but I'd need the metaclasses themselves (and I think that this should be possible)...

Thanks in advance
Christian
Yes, that's the perspectives I meant. Can't help much with that since I'm more or less still at V13.5. And of course you need to right license for EA in order to use SysML.

q.

csoltenborn

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to reference UML/SysML metaclasses?
« Reply #5 on: September 04, 2020, 10:24:09 pm »
Thanks again, guys!

@Geert: Since you appear to know quite a bit about EA  ;) - is this indeed what you would do? It feels a bit awkward to me since the UML metamodel seems to be available in general (after all, I can access the metaclasses when defining profiles)...

Best
Christian

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to reference UML/SysML metaclasses?
« Reply #6 on: September 04, 2020, 11:55:10 pm »
Hi Christian,

Yes, EA doesn't really have the metamodel of UML present.
You can use some of the metamodel classes when defining a UML profile, but that is not the same as using them in your model.

If you want to model relations to the UML metamodel I would definitely import it into your model from the omg provided xmi.

Geert