« Back to Secure Tropos Project

Documentation: Attribute Modi

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Documentation: Attribute Modi
community documentation transformation core transformation adoscript
Answer
27/03/14 12:24
This question is similar to the previous one - how to customise which attributes of modelled objects to show on the exported document? When WORD document is exported it shows model's objects, their types and names. All of the included objects have custom attributes and none of them are shown on the document, except for one object. After searching for differences between different attributes I could not identify being anything special about the attribute which was included into the documentation (i.e. type - SystemActor, name -  System, after it a table with single attribute and its value is displayed). There might be a relation to the attribute modes (thus ATTRIBUTEMODI), but it is not clear from the documentation how to use these attribute modes in other contexts than outlined in the sections "Defining the menu entries" and "Defining attribute modes" of the documentation.

RE: Documentation: Attribute Modi
Answer
02/04/13 09:51 as a reply to Anonymous.
As a configuration parameter, the attribute and class filter can be used to allow users to define which attributes to consider (per class) and take into the export for documentation. In addition, attributes can be defined in accordance with the class attribute that relates to the documentation setting (as in line 1 of the attached screen): the class-atttribute “Doku” is used when running documentation (same syntax as AttrRep) and is evaluated. If not existing, the AttrRep is used as a fall-back.
The “Documentation” MODE that is specified in the first line as corrsponding to “Doku” needs to be available as a mode in the modeltype definition ("Modi").