HP 3000 Manuals

Lesson 25 - Using Decision Tables [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Self-Paced Training Guide

Lesson 25 - Using Decision Tables 

Decision tables allow you to define a series of actions to be performed
as the result of the outcome of a series of conditional tests or
questions.  A decision table can test up to eight questions and execute
up to eight actions such as functions, processes and screens.

Having defined the questions and actions, you can then define up to 31
relationships.  Each relationship defines a combination of results for
the questions, the actions to be performed, and the order in which the
actions are performed.

You can use a decision table to perform the same functions as complex
IF-THEN-ELSE structures.

A decision table is defined with four screens:

   *   The decision table header screen.

   *   The decision table questions screen.

   *   The decision table actions screen.

   *   The decision table relationships screen.

In this application, the decision table tests the status of a number of
variables that are set while the product screen is active.  The results
of these tests determine the appropriate file update actions.

The decision table you will create is used by the product_proc process.
The process executes this decision table when the user terminates the
product_scrn screen.  The decision table determines which update function
is executed to update the product and option files after data entry.

You will also create the functions that add new records to the product
and option files.



MPE/iX 5.0 Documentation