Author Topic: MDG _subtypeProperty to support multiple tagged values  (Read 10623 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1146
  • Karma: +35/-2
    • View Profile
    • www.umlchannel.com
MDG _subtypeProperty to support multiple tagged values
« on: December 01, 2021, 12:36:39 am »
Hi,

I used while ago the _subtypeProperty attribute in my MDG UML profil to prompt the user to select an enum tagged value when creating the stereotyped element.
This is used for instance in the built-in BPMN MDG on tasks and gateways.

I have a stereotype that uses 2 enum tagged values and it would be great to be able to provide both tagged values in _subtypeProperty  so the user is prompted to select the values for each tag.

Similarly, could there be a way to specify in the toolbox the default values to set on a stereotyped element's tagged values?

Guillaume

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


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7707
  • Karma: +101/-18
    • View Profile
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #1 on: December 01, 2021, 08:39:42 am »
I used while ago the _subtypeProperty attribute in my MDG UML profil to prompt the user to select an enum tagged value when creating the stereotyped element.
This is used for instance in the built-in BPMN MDG on tasks and gateways.

I have a stereotype that uses 2 enum tagged values and it would be great to be able to provide both tagged values in _subtypeProperty  so the user is prompted to select the values for each tag.
I can't think of a way to do this that wouldn't be a horrible user experience. Is it really two types or just something that you want the user to fill in? I would probably just go for a shape script that makes it clear that it's incomplete. Options include a dashed border on the basic shape or a great big red bar across it.

Similarly, could there be a way to specify in the toolbox the default values to set on a stereotyped element's tagged values?
There is an existing mechanism for this. Create a pattern and then use UMLPatternSilent on your toolbox.
Eve

support@sparxsystems.com

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1146
  • Karma: +35/-2
    • View Profile
    • www.umlchannel.com
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #2 on: December 02, 2021, 11:00:50 pm »
Hi Eve,

I did a few tests on integrating silent patterns in the toolbox and it seems to be a valid alternative/solution to what I was looking for.

Thanks  :)
Guillaume
Guillaume

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


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1146
  • Karma: +35/-2
    • View Profile
    • www.umlchannel.com
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #3 on: January 19, 2022, 08:36:41 pm »
Hi,

I noticed that using patterns within a toolbox doesn't support an incremented number on the new elements' names.
For instance I always get the name as set in the pattern e.g. CustomClass, whereas users would like to have CustomClass1, CustomClass2, etc.
Is there a way to achieve this?

Thanks
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 12741
  • Karma: +361/-295
  • I'm no guru at all
    • View Profile
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #4 on: January 19, 2022, 10:09:07 pm »
I wonder which user ever wants their classes numbered rather than named meaningful.

q.