User guide

The view model editor
64 Data Integration with Sybase Avaki Studio
Adding global parameters
To add a parameter to your model, click the Add Parameter button to open the
Global Parameter Properties dialog.
The fields are as follows:
Name: A name for the parameter. Make sure it conforms to the variable naming
conventions (see “Element names” on page 58).
Type: Choose a type from the popup. Types are expressed in the SQL format, rather
than as Java objects.
Parameter is an array: Check this if you want the parameter to be an array of the
selected type.
Description: (Optional) Enter a description here, if you like.
Validation Expression: (Optional) Enter a Boolean expression here that will be
evaluated to determine the validity of the value passed for this parameter. If the
expression evaluates to false, the data service will not execute and an error mes-
sage will be returned (see the next field for details). Refer to the value of the vari-
able being validated by its fully qualified name: variables.global.<name>.
For example, to ensure that the length of the State variable is two characters, you
could use this expression: