Author Topic: Shape Scripts (Stereotypes?) on Requirements?  (Read 2523 times)

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Shape Scripts (Stereotypes?) on Requirements?
« on: January 19, 2010, 04:52:56 am »
Should I expect to be able to add a shape script to a stereotype defined (on a Profile, and with Settings->UML...) on a base class of Requirement?

It doesn't seem as if Requriement elements are full class citizens (no pun intended), but are based on 'comment' and their properties don't show stereotype, but if you create a profile or use Settings->UML... you can in fact create a stereotype, and it appears as a Type...(but not in the drop down)

I was trying to add an additional dimension to Requirements (or even Issue, Change, any base item would do) - Assumptions and thought I could "easily" stereotype REquirement as an Assumption and create a visually different shape... It seems that I will be somewhat limited...

Suggestions?

cwt

[my apologies if this is in the wrong forum, I started but trying the Shape Scripts and discovered more 'stuff' on requirement elements]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shape Scripts (Stereotypes?) on Requirements?
« Reply #1 on: January 19, 2010, 10:07:36 am »
The problem Chris, is that an EA requirement uses the stereotype field to hold the Requirement type.

So IIRC you can create a shape script but only for new (or existing) requirement types.

However, once you create the shape script (I only tested on the general stereotypes in Settings|UML...|Stereotypes) it will be applied to the appropriate requirement type.

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

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Shape Scripts (Stereotypes?) on Requirements?
« Reply #2 on: January 20, 2010, 07:42:18 am »
Got it... that should work for what I want.

In a(nother) quick test I see that the Requiiement Types don't appear as UML Stereotypes in UML | Settings until you use one on a diagram (or I assume, add element) - and then, there they are!  SO I should be able to override their appearance as needed (thinking just the decorator is enough)

The custom stereotype that I created in my Profile can only be realized if I drag that object from the Resources, it doesn't appear in the drop down as a selection in Requirements Types - not to worry, I can update those in UML General Types as you pointed out, the steretype does appear as a Type then.  Perhaps not all to spec, but then again the Requirements are "extended!"  This implies that I don't need a custom stereotype - saves a bit of work.

I'll play with the order of creating this stuff...

thanks - cwt