Author Topic: DocGen: Overridden attribute initializers  (Read 4597 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
DocGen: Overridden attribute initializers
« on: April 15, 2016, 11:25:20 pm »
Hi all,


I've got a class model with a lot of overridden attribute initializers.

Is there a simple way to access those in an RTF template?

...

OK then, is there a hard way to access those in an RTF template?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13286
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DocGen: Overridden attribute initializers
« Reply #1 on: April 15, 2016, 11:37:54 pm »
Uffe,

What you do mean by "overridden attribute initializers"?

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: DocGen: Overridden attribute initializers
« Reply #2 on: April 16, 2016, 12:51:42 am »
Well... Attribute initializers that have been overridden.  ::)

No sorry, attributes in a class which have been given their own initializers in a specialized class.
Which you do by right-clicking the specialized class and selecting Features & Properties -- Override Attribute Initializers.

There's no obvious node for these in the RTF template editor, so I'm wondering if there's a way to pull them out without creating a complicated fragment.
Or if that's the only option, where they are stored. Because they're not in t_attribute.


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13286
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DocGen: Overridden attribute initializers
« Reply #3 on: April 16, 2016, 01:28:58 am »
No sorry, attributes in a class which have been given their own initializers in a specialized class.
Which you do by right-clicking the specialized class and selecting Features & Properties -- Override Attribute Initializers.

Ah, don't think I've ever used one of those.
They are stored in the field t.object.RunState in the form of
@VAR;Variable=attribute1;Value=7;Op==;@ENDVAR;

There is a field "Run State" in the template where you can select Variable, operation, notes and Value.
Seems like you are in luck and there is indeed a simple way :)

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: DocGen: Overridden attribute initializers
« Reply #4 on: April 16, 2016, 02:07:31 pm »
Coolness -- thanks, Geert! :)

/Uffe
My theories are always correct, just apply them to the right reality.