Author Topic: Relationship Matrix: show classes with specific stereotype  (Read 584 times)

Mo

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Relationship Matrix: show classes with specific stereotype
« on: January 04, 2021, 06:02:27 pm »
Hello, EA Experts,

Is there a way that I can show the classes (in a package) with a specific stereotype (stereotype ABC) rather than showing all the classes in that package when I drag it and drop it to the Source or Target?

Thank you,
Mo
PhD Student - Systems Engineering

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10705
  • Karma: +375/-32
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relationship Matrix: show classes with specific stereotype
« Reply #1 on: January 04, 2021, 06:11:19 pm »
Yes, if your stereotype is defined in an MDG and has a metatype specified.

See for example BPMN BusinessProcess

Geert

Mo

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Relationship Matrix: show classes with specific stereotype
« Reply #2 on: January 04, 2021, 06:30:13 pm »
Thank you, Geert for your response.

So, it is not possible to do that if the stereotypes are defined in the standard UML perspective?

Mo
PhD Student - Systems Engineering

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10705
  • Karma: +375/-32
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relationship Matrix: show classes with specific stereotype
« Reply #3 on: January 04, 2021, 06:51:13 pm »
Thank you, Geert for your response.

So, it is not possible to do that if the stereotypes are defined in the standard UML perspective?

Mo
Can you given an example? I'm not sure what stereotypes you are talking about.
An alternative might be to assign a query to be te source.

Geert

Mo

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Relationship Matrix: show classes with specific stereotype
« Reply #4 on: January 05, 2021, 08:54:10 am »
Hello, Geert,

I have a class diagram that includes different elements: classes, enumerations and data types.

The enumeration types are stereotyped as <<question>> and <<category>>

When I drag and drop the package that includes this diagram to the relationship matrix source and choose "enumeration" from the dropdown "Type", the source will show all enumeration elements regardless of their stereotype.

My question is whether there is a way to show only the enumeration items stereotyped as <<question>>?

Thank you,
Mo
« Last Edit: January 05, 2021, 08:55:41 am by Mo »
PhD Student - Systems Engineering

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10705
  • Karma: +375/-32
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relationship Matrix: show classes with specific stereotype
« Reply #5 on: January 05, 2021, 04:06:33 pm »
«question» and «category» don't seem to be predefined stereotypes.
If you want to easily filter the relationship matrix based on your stereotypes, you'll have to define them in an MDG, and give them a metatype.

But as was remarked before, I'm not sure if they should even be stereotypes at all.
Stereotypes are meant for the meta-level. Not to denote a bunch of similar classes

Geert

Mo

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Relationship Matrix: show classes with specific stereotype
« Reply #6 on: January 06, 2021, 05:16:47 pm »
Thank you, Geert for the additional information.

I would appreciate that you clarify how can I define the stereotype in an MDG, and give them a metatype?

Thank you,
Mo
PhD Student - Systems Engineering

qwerty

  • EA Guru
  • *****
  • Posts: 11557
  • Karma: +317/-264
  • I'm no guru at all
    • View Profile
Re: Relationship Matrix: show classes with specific stereotype
« Reply #7 on: January 06, 2021, 07:09:46 pm »
That is a too broad bit of a question. Creating an MDG is not too difficult, but it takes some reading and experimenting. I suggest you start with the first.

q.
« Last Edit: January 06, 2021, 07:37:22 pm by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10705
  • Karma: +375/-32
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relationship Matrix: show classes with specific stereotype
« Reply #8 on: January 06, 2021, 07:10:35 pm »
Start here: https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/introduction_2.html

You'll first need to create a UML profile, and then package that into an MDG.

Geert

Mo

  • EA User
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Relationship Matrix: show classes with specific stereotype
« Reply #9 on: January 07, 2021, 05:46:20 pm »
Thank you, Geerd for the link. I will go through it.

Kind Regards,
Mo
PhD Student - Systems Engineering