Author Topic: Attribute initializers in RTF templates  (Read 3789 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Attribute initializers in RTF templates
« on: February 12, 2016, 09:00:22 pm »
Hej alla glada,


I've got a class model with plenty of generalizations and overridden attribute initializers.

Since these aren't attributes in the specialized classes, their values aren't output by an Element -- Attribute section in an RTF template.

Is there a way of producing them using regular templates? I'm on 11.1 here, but a 12.X answer is equally appreciated.

I can write a fragment to fix it, but it's a bit of a complex bugger because the attribute initializers are stored as key/value pairs in t_object.RunState. So if anyone's got one a sample fragment that fits the bill lying around that's good too.


Cheers,


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

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Attribute initializers in RTF templates
« Reply #1 on: February 12, 2016, 09:13:04 pm »
Clarification: an Element -- Inherited Attribute section only produces the names and default values, if any, of the attributes declared in a more general class. It does not output initializers.

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