Book a Demo

Author Topic: Macros/references from inside Notes/Element Notes  (Read 3619 times)

dhaynes

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Macros/references from inside Notes/Element Notes
« on: December 07, 2006, 12:35:06 pm »
Lovin' the product. Best bang for the buck of any development tool, just behind NUnit (hard to beat since it's free) and VS2005 itself.

One thing I would like - the ability to reference element names/values  from within a Note/Element Note.

For example I have defined class that has an enumeration. When I'm writing use cases I generally follow the Iconix method and attach a note to the use case and link it to the Element Feature -> Element Note.

When I compose the use case text in the Element Note I'd like to refer indirectly to classes or even a specific enumerator within a class. That way if I change the name of the class or the enumerator during a refactoring, the note text stays up to date.

Something like a make/VS macro: $(MyDiagram.MyClass) or ${MyClass.MyEnum.MyEnumerator} or something like that.

So if I write a use case that includes something like:

 "Service receives LogonRequest message and catches fire"

... I could instead write:

 "Service recieves $(ClassDiagram.LogonRequest) and catches fire"

That way if I changed terminology to 'logon' to 'login' the visible text would automatically be updated to:

 "Service receives LoginRequest message and catches fire"

Also it could be help us identify which comments/use case descriptions reference entities that have been removed. Right now it's a manual process to search the project for references to obsolete entities and that's a slow process.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Macros/references from inside Notes/Element No
« Reply #1 on: December 07, 2006, 01:19:12 pm »
Yes!  Send in a formal request to Sparx - linking to this thread so they can see voting and other comments...

The only problem may be that you'll need to use GUIDs as the identifier as qualified name is not stable enough...

However, for my money, GUID is a small price to pay for the functionality!

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Macros/references from inside Notes/Element No
« Reply #2 on: December 07, 2006, 03:13:56 pm »
Quote
However, for my money, GUID is a small price to pay for the functionality!

One that I'd happily pay!

Add my vote.
No, you can't have it!