Determining whether a macro screen matches the application screen
The macro runtime determines whether a macro screen matches the current application screen by comparing individual descriptors in the macro screen to the current session window.
In the example scenario, the macro runtime find the name Screen2 on the list of valid next screens, retrieves Screen2, looks at its descriptors, and compares the descriptors with the session window.
- The input inhibited indicator is cleared (input is not inhibited).
- There are 80 fields in the session window.
- There are 3 input fields in the session window.
When there are several descriptors in a <description> element, as here, the method that the macro runtime uses to evaluate the descriptors (as boolean true or false) and to combine their results into a single result (true or false) depends on some additional configuration information that is not described here.
However, in the example scenario, Screen2 is configured in the default manner, so that the macro runtime evaluates each of the three descriptors in turn. If all three are true, then the macro runtime concludes that the overall result is true, and that Screen2 matches the current application screen.
For more information about evaluating descriptors see Evaluation of descriptors.