Author Topic: MDG UML Profile Rectangle notation does not work for an actor  (Read 2777 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
MDG UML Profile Rectangle notation does not work for an actor
« on: October 08, 2020, 06:48:41 pm »
Hi,

I defined a "not human" stereotyped actor in an MDG and need to show them in the rectangle notation by default.
I used the stereotype Profile Helper which created the special attribute _UCRect = 1 in the actor metaclass.

Unfortunately when I create them, they still appear as a stickman.
Is this a known bug? Is there a workaround?
I'm using the latest EA build for this project.

Thanks
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: MDG UML Profile Rectangle notation does not work for an actor
« Reply #1 on: October 08, 2020, 08:37:06 pm »
Use a shape script and a «diagram property». We do that similarly for other rectanguar notations.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8604
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG UML Profile Rectangle notation does not work for an actor
« Reply #2 on: October 08, 2020, 08:42:51 pm »
Hi,

I defined a "not human" stereotyped actor in an MDG and need to show them in the rectangle notation by default.
I used the stereotype Profile Helper which created the special attribute _UCRect = 1 in the actor metaclass.

Unfortunately, when I create them, they still appear as a stickman.
Is this a known bug? Is there a workaround?
I'm using the latest EA build for this project.

Thanks
I can confirm.  We had to change to <Apply type="Class"> to get the shapescript to respond to Rectangular Notation - yet another EAUI special!

Our shapescripts do as qwerty suggested, but it's not enough.   NOTE: I'm assuming rectangle notation is NOT the same as display as a rectangle.  If the latter, then that CAN be done with non-rectangular notation and a diagram property as qwerty said.  We wanted TRUE Rectangular notation to be able to display the various compartments.

Concistency, konsistency, consistensy! TMUffe - after Paolo

Paolo
« Last Edit: October 08, 2020, 08:47:15 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: MDG UML Profile Rectangle notation does not work for an actor
« Reply #3 on: October 09, 2020, 07:15:09 pm »
Thank you for your replies. If I want to keep the elements as stereotyped actors, I'm not sure if a shapescript can meforce an actor element to be rendered with the rectangle notation.
I found a related thread here where no solution was identified (except from the bug to be eventually fixed): https://www.sparxsystems.com/forums/smf/index.php?topic=38965.0
Guillaume

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