Author Topic: Element's attribute reference in notes  (Read 4903 times)

Ondrej Kolenaty

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Element's attribute reference in notes
« on: February 29, 2008, 03:01:55 am »
Would it be possible to any element's attribute (ie. name, value of Tagged Value etc.) to notes and scenarios (the RTF ones newly in EA 7.1). That will update after change in the target element?

An example: in class A note i would like to refer to class B's name. And after I change name of B to "C" the note in class A will remain uptudate and the note will contain "C" instead of "B".

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Element's attribute reference in notes
« Reply #1 on: February 29, 2008, 07:03:02 pm »
I don't think this would be easy to implement. Sparx would have to introduce yet another syntax (with variables for element references), and internally this would have to point to the target element's unique ID.

In a case like yours, instead of a note in class A saying e.g. "A is only there to complement B", I'd rather draw a dependency from A to B and give it a stereotype like "complements". Renaming B would not be an issue then.

Anyway, I'm all against Sparx introducing new languages while the existing ones (like automation and shape scripting) are still buggy and poorly documented.

As to tagged values: if you frequently have the need to reference other elements by a tagged value, you may want to define a profile. There you can give a tagged value a type restricting it's values to a certain stereotype, and editing the tagged value when your profile is loaded will give you a dialog to choose from all suitable elements within the model. Renaming the target element will not break the reference then either.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Element's attribute reference in notes
« Reply #2 on: February 29, 2008, 09:44:21 pm »
Ahoj Ond[ch345]eji,

according to you surname I hope you will understand the content of this page: http://www.objects.cz/eaoe/eaoe.html
It is commercial plug-in you are after.
Jan 'Bary' Glas

Ondrej Kolenaty

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Element's attribute reference in notes
« Reply #3 on: February 29, 2008, 09:51:50 pm »
Sure I understand, but there is a problem with EAOE and EA 7.1. Since the RTF notes are stored in diferent format and are damaging notes stored by EAOE. Also I find a bit unlucky way how to make exports.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Element's attribute reference in notes
« Reply #4 on: February 29, 2008, 10:13:26 pm »
All you say is truth, I neither do I use it.
« Last Edit: February 29, 2008, 10:13:38 pm by Bary »
Jan 'Bary' Glas