Table of Contents

Generating Documentation

Transaction GENDOC

This transaction is used to generate HTML documentation from TradeDesign sources. A distinction is made between user documentation and developer documentation. It is possible to generate documents using the UTF-8 or the ISO-8859-1 character set.

This transaction works similarly to the transaction GENWIK, which generates documentation in DokuWiki format.

Starting with release 5.06, the developer documentation will be generated in Wiki format, starting with release 5.06 SP2 also the user documentation. Older Releases had been provided in .html format.

The following types of documentation can be generated using GENDOC:

Documents for

General Information

As well as using the sources of the transactions and database tables, this transaction also uses content from various database tables.
The section Sources of texts in generated documentation below describes which parts of the documentation are generated from which source.

It is therefore important that the database used as a source contains the up-to-date version of the information required:

In addition, the source files for the database tables and transactions are used in accordance with the given environment.

Generating the documentation further requires the programs “mod2txt.exe” and “Tidy”.

Tidy is a tool provided as part of W3C framework that checks HTML documents for conformity, for example, and automatically carries out various normalization processes. The version of Tidy.exe we used at the release date is included in our product. (HTML Tidy for Windows, released on 1 September 2005, is a utility to clean up and pretty print HTML/XHTML/XML – see http://tidy.sourceforge.net/).

Tdtidy.dll should be located in the BIN directory of the application. We do not accept any liability for the correct functioning of Tidy.

Manually written texts can be added to generated documents. To ensure that these texts are retained when a document is re-generated,
generated passages are to be contained within special html tags. Anything bracketed by a <a id=“TD_Start_ ….> entry and a <a id=“TD_End_…> entry was generated by GENDOC. Manually added texts are only retained if they are written between a <a id=“TD_End_…> and a <a id=“TD_Start_…> entry.

If changes to a document result when it is re-generated, GENDOC tries to check out this document. The Log records the processing options set and and the processes carried out. Warnings and error messages are highlighted so that the Log can be used as a check list for further processing. GENDOC also indicates if there are links pointing to documents that do not exist.

The documentation generated in this way is written to directory “X:/Workenvironment/DOKUHTM/yy/xxx/GENDOC”, with:

yy = User language (e.g. 'DE' for German and 'EN' for English)
xxx = Type of documentation ('APP' for user documentation and 'DEV' for developer documentation)

All files that are not in a GENDOC directory are documentation files that have been created manually.

If a table, transaction or codetable is removed, the corresponding html documents have to be deleted manually. Any existing index entries must also be deleted manually.

Generation

The current environment and system variables are displayed in the upper part of the 'Generation' panel.

The output language can be selected from the 'Language' field. The character set to be used is determined in the 'Character Set' field.

The documentation type is defined under 'Type of Documentation'. The available options are:

The output path for documentation generation is displayed in the field 'Path of Documents'. By default, this is located in the work environment currently used.

The level of detail written to the Log during the generation of the documentation is defined in 'Log Details'. The default value is 'Errors', i.e., only errors are written to the log file. The 'Info' option is used for normalization (in the 'Document Handling' panel).

In the lower part of the panel, several checkboxes and comboboxes are available to determine which parts of the documentation are to be generated.

The documentation is generated by clicking the [Generate] button. Click the [View Log] button to view the log for this transaction.

Once a document has been generated, it is normalized using the 'Tidy' program.

Codetables

A document is generated for each codetable stored in the database. The filename consists of the name of the codetable and a 2-digit language code. In addition, an index file 'indexct.htm' is created covering all codetables.

Database Tables

A document is generated for each database table. The filename is the same as the name of the table.

In addition, an index file 'indexdbf.htm' is created covering all database tables.

Transactions

If this checkbox is checked, additional entries will be required.

It allows the user to define for which transactions the documentation is to be generated:

On top of this, a selection can be made of what exactly is to be generated for the selected transactions:

A document is generated for each transaction selected. The filename corresponds to the transaction code.

In addition, an index file 'indextrn.htm' is created, or updated, which covers all the transactions.

General Panels

Many panels, such as the 'Settlement' panel or the panel for a Liability, are used in many transactions independent of the business sector. To avoid duplication/multiplication of the required documentation, when the list of the transaction panels is populated, GENDOC checks whether a file called ''<modulename>.htm' already exists in the parent directory for the module to which the panel belongs. If this is the case, a link from the entry in the list of panels is established to this module (plus the name of the panel), and the image of the panel, including the list of fields, is not included in the transaction documentation.

Known Issues

when generating panels and lists of fields:

Sometimes it is appropriate to use display files that are created manually for specific panels; this would be the case with panels where several labels overlap, panels where panel names are allocated dynamically, or panels containing important grids that are not filled in in the generated display files. This process is described under 'Manually created hardcopies in the documentation'. If there are such manually created display files, these are automatically taken into account when creating the GIF files.

Party Model

For each business sector, a document is generated that identifies the defined rolls in that sector. The filename consists of the constant 'bro' and the 2-digit code for the business sector. In addition, an index file called 'indexbro.htm' is created covering all party models.

Incoming Messages

An umbrella document is generated for each business sector that lists transaction mappings for the sector. The filename consists of the constant 'swm' and the 2-digit code for the business sector. In addition, an index file called 'indexswmbus.htm' is created that lists such umbrella documents.

A document is generated for each incoming message containing at least one defined mapping. This document identifies the target transactions and the individual field mapping. The filename consists of the constant 'swm', the single-digit channel code and the 3-digit message type. In addition, an index file called 'indexswm.htm' is created that lists all defined mappings.

**TDView Index**

If checked, this option prompts the 'TDView' viewer to refresh/create the whole index for the documentation once the documentation has been generated.

Switches and Commands for Launching the Transaction in Batch Mode


Switch Parameter Description
-l Language Language in which the documents are generated
-utf-8 To generate the documents with the UTF-8 character set
-iso-8859-1 To generate the documents with the ISO-88-59-1 character set (default)
-type Type of documentation app = user documentation / dev = developer documentation
-log Level of detail for the log A = All, E = Error, I = Info
-tbl Listfile To generate the documents for database tables
-dsp ListFile To generate the display files
-gif Listfile To generate the GIF files
-trn Listfile To generate the documents for transactions
-genen To copy the documents for GENxxx transactions from the English documentation
-tdview To generate the index for Tdview
-nrmtidy To normalize with the program Tidy
-dir Directory Directory of the documents to be normalized
-pat Pattern Pattern for the documents to be normalized


Commands

-gendoc (Generate documents)
-normalize (Normalize documents)

Sources of texts in generated documentation

Sources for generated documentation include sources (source code and specific comments, so-called doku-tags) and entries in the database of the environment from which the documentation generation is started.
Entries in the ATP, ETP, HLP, SWM, STH and STB tables are used.

Database Tables

Database Tables in Application Documentation

Help texts for data base fields are stored under the key DOK.DBF.<Table>.<Field>.

Element Origin
Table name Source (Literal in doc. language)
Column 'Name' in table of datafields Source
Column 'Description' in table of datafields HLP/NAM in doc. language
Column 'Data type' in table of datafields Source
Column 'Length' in table of datafields Source
Column 'Codetable' in table of datafields Source
Datafield Description HLP/TXT in doc. language
Codetable Code and Text from STH and STB
Embedded Codetable Source

Database Tables in Developer Documentation

Help texts for database fields are stored under the key DOK.DBF.<Table>.<Field>.

Element Origin
Table name Source (Literal in doc. language)
Description of Table Source (comment, there always in English)
Column 'Name' in table of datafields Source
Column 'Description' in table of datafields Source (always in English)
All other columns in table of datafields Source
Table of indices Source
Column 'Codetable' in table of datafields Source
Locks Source
Technical description of datafields Source (Comment, always in English)
Help information for datafields HLP/TXT in doc. language
Codetable Code and Text from STH and STB
Embedded Codetable Source

Transactions

Depending on the type of transaction, different headings/sections are generated.

A distinction is made between

Section Origin generated by
Title of the document Transaction name from ATP all transactions
Transaction panels Display file, generated or manually saved, see above all transactions
Requirements Source: Docu tag #$ TRNALLOWED.<Transaction> in the rules IsXXTrnAllowed in the XXXLod modules contained in the transaction business transactions
Incoming messages Mappings for this transaction business transactions
Release acc. to entry in ETP business transactions
Launchable transactions Source: Docu tag #$ TRNALLOWED.<Transaction> in the rules IsXXTrnAllowed in the XXXLod modules contained in the transaction selection transactions

Party Model

Table of parties:

Column Origin
Role Source
Description Longtext of the role from codetable ROLALL
Usage as temporary address allowed Source
Address type Source
Stoplevel Source
Copying allowed Source
Main address Source

Description of parties:

Help text for the corresponding role in this business sector.
Help texts for database fields are stored under the key DOK.TRN.\<Sector>DGRP\<Role>\PTS.

Transaction Panels

Generation
Document Handling

Generation



Datafields

Datafield Description
Display log Displays the processing log for the transaction.


Document Handling



Document Handling

The 'Document Handling' panel is used to normalize a single documents or all documents in a given directory.

The normalization process converts all backslashes (“\”) to normal slashes (”/”) so that they are easily recognized on both Linux and Windows systems. Files to be normalized can be selected via the displayed directory window and the [Dir Up] and [Dir Down] buttons (directory up or down). Clicking the [Norm. File] button normalizes the selected file, and clicking the [Norm.Dir.] button normalizes all files in the displayed directory.

The [Chk.Dir] and [Check.File] buttons can be used to check whether all the links work, independent of the generation. [Chk.Dir] checks all the documents in the selected directory, [Chk.File] only checks the selected file. Links that do not work are listed in the log.

The HTML source code for a selected file can be displayed by clicking the [View] button.