Previous Topic: Load Module ComponentsNext Topic: Batch Manager


Dialog Manager

A Dialog Manager is generated for each online load module. The entry point for all load modules is a CA Gen-provided runtime module named TIRMAIN. It calls the Dialog Manager that controls the dialog flow, link, and transfer, between procedure steps, supports terminal input/output, and maintains execution context in a Profile Database. The Dialog Manager uses information from procedure step import and export views, screen definitions, dialog flows, and load module packaging to isolate the user-defined program logic from the execution environment.

The Dialog Manager contains cross-reference tables of procedure steps, exit states, and transaction codes for the procedure steps that are packaged in the load module. The procedure steps to which the load module procedure steps link or transfer are also cross-referenced. The Dialog Manager uses this information to select the target procedure step within its load module. If the target procedure step is in another load module, the Dialog Manager uses the information to select the transaction code that invokes the load module containing the target procedure step. CA Gen provided runtime routine TIRMSG is named to invoke the other load module.

When a load module is executed, the Dialog Manager determines the procedure step to execute and populates the import view of the procedure step from screen input, data that is passed from another procedure step, and data that is taken from the Profile Database. This allows each procedure step to reference data in its import view without considering how the data values were obtained.