Static Data Design
Generator
The following table of contents provides an outline of the documentation for this generator.
1. Overview
This generator creates a professional Microsoft Word design document that describes the static data architecture used
by the system, as well as full structure and documentation of all enumerations and their items grouped by module. The
generated document is based on a customizable Word template that you can update to change the look and feel, the static
content, and even the way dynamic content is added.
This can save you countless hours on developing and maintaining high quality design documentation, and will allow you to
be more agile by sharing the design with other stakeholders at any point. Plus, you'll never have to worry about the technical
design being out of sync with the actual implementation.
For each enumeration defined in the model, grouped by module, the generated design document lists its properties and items,
along with their detailed descriptions. In addition to the explicit documentation provided in the model for the enumeration
and each item or property under their doc elements, the generator also uses other information from the model
to create comprehensive documentation on each item or property.
The following example illustrates the structure of the doc element for different model elemnts. It contains a
summary tag, which briefly describes the field or the object, and can also be output in the comments of generated code,
followed by any additional free text documentation on those.
The generated documentation of each item will also contain the values of each of its additional properties.
1.2 Generator outputs
This generator creates a Microsoft Word static data design document at the specified path, which then needs to be updated
to refresh the table of contents and any other calculated fields.
2. Configuration
The following sections describe configuration parameters used by the generator.
2.1 Generator parameters
The following table lists configuration parameters that are set as the generator’s properties.
Parameter |
Value Example |
Description |
Generator Name |
Static Data Design
|
The name of the current configuration of the generator that will appear in the model project and the build output. |
Folder Name |
Documentation
|
Folder path to the generator inside the Model project. The folders are separated by a backslash (\). |
Include In Build |
False
|
A flag indicating whether or not running this generator should be included in building of the model project. |
Document Template |
C:\Program Files (x86)\Xomega.Net\8.10\ Templates\StaticData.docx |
Path to the MS Word document that will be used as a template for the generated document. |
Output |
Output Path |
../Docs/StaticDataDesign.docx |
Relative path where to output the generated document. |
Parameters |
Title |
MySolution's Static Data Design |
Title to use for the generated document. |
Subject |
Technical design for the MySolution's static data |
Subject (subtitle) to use for the generated document. |
Creator |
[User] |
Creator (author) of the generated document. Value [User] indicates the user of the current Xomega license. |
Company |
[Company] |
Company to use for the generated document. Value [Company] indicates the company of the current Xomega license. |
2.2 Model configuration
The generator doesn't use any other global configurations in the model.
2.3 Common configurations
There expected to be just one configuration of this generator in the model, with the parameter values as illustrated above.
3. How to use the generator
The sections below provide some details on how to work with the generator.
3.1 Running the generator
You can run this generator for the entire model only. For that you need to select it in the model project, and then select
Generate menu from either the context menu or the top-level Project menu. After you generate the document, you need to
open it and refresh all fields there, such as the table of contents, by selecting all text (Ctrl+A) and pressing F9.
You can rerun the generator when you add or change enumeration items or properties, or the xfk:enum-cache configuration
of "readlist" operations, or if you change any parameters on those operations. Normally, you need to run it initially, during
the design of the system, and then as needed, to generate up-to-date documentation. You don't need to include this generator
into the model build process.
3.2 Customizing the output
You should never edit the generated document directly to avoid losing your changes when you rerun the generator.
Instead, you should update the MS Word template that is used to create the document, or make changes in the model itself.
3.3 Cleaning generator’s output
The generator doesn't support a Clean operation, since the entire document is regenerated when you rerun the generator.