Defining Output Variables

States return results as output variables, which are always session variables. Only states can set output variables, and only at runtime. Output-variable check boxes are always selected and cannot be modified.

To create an output variable, use the OutputAttribute constructor:
OutputAttribute("WEATHER", "Your Weather Synopsis")


Output Variables

By default, output session-variable names are not set, so text boxes are empty. You can set values by calling either of these two methods:

The saveOutputAttributes method saves multiple session variables with a single database connection. If the state has only a few output variables, call the setValue method. If there are many output variables, call setHoldValue; this may impact the efficiency of the state at runtime.

To set output variables, call one of the methods in the OutputAttribute class:
Related concepts
Input and Output Parameters
Custom State Variables
Defining Input Variables
Accessing Input Variables
List Variables