Author Topic: Override Attribute Initializers dialog question  (Read 2943 times)

snoack

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • UML Dino
    • View Profile
Override Attribute Initializers dialog question
« on: September 28, 2009, 06:20:47 pm »
According to the tool help, i can invoke the Override Attribute Initializers dialog for elements that have attributes in general and  have inherited attributes where the initial value needs to be overriden.
I am supposed to select the inheriting element and choose Advanced | Override Attribute Initializers from the context menu.
Unfortunately this menu option is never displayed.

Are there certain constraints or options i might have to set to allow overriding attributes in general?

In my concrete example, i'm trying to create a deployment diagram with specializations of different hardware elements (for example server: blade server, rack server, ....). All server node specializations  have the same common attributes but there are some differences regarding the initial values for blade and rack servers.
I thought that i could simply define the attributes for the general server node without an initial value and override them for specializations of server whenever necessary. This doesn't work, i.e. the menu option for the dialog was misssing.
I then entered an extra attribute with the same definition for the specialization nodes because i assumed that maybe you need to add the attribute to be able to override it but that didn't help.

I then tried to do the same thing with classes because i assumed that override attribute initializers isn't implemented for deployment nodes but that didn't help.

How do i model inherited attributes to be able to override their initial values and what needs to be selected to open the override dialog?

EA7.5.845 Ultimate edition

Thanks in advance - Sabine


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Override Attribute Initializers dialog questio
« Reply #1 on: September 28, 2009, 06:47:28 pm »
Sabine,

I've just tried this and it works fine here.
I'm using EA v. 7.5.848.
I've created a class with some attributes and created a second class that inherits from the first one.
Then on the diagram (maybe that is the key?) I rightclick on the subclass and in the context menu I have the option "Advanced/Override Attribute Initializers".
I don't know of any special options I could have turned on to make this possible.

Geert

snoack

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • UML Dino
    • View Profile
Re: Override Attribute Initializers dialog questio
« Reply #2 on: September 28, 2009, 07:24:29 pm »
OK it seems to work for classes in class diagrams only.
The Toolguide specifically mentioned all elements that have attributes and i assumed that i could use this mechanism for deployment model elements too, since nodes also can have attributes and inheritance also works for nodes.

Thanx - Sabine