69
Building Streams
Parameters can also be set for SuperNodes, in which case they are visible only to nodes
encapsulated within that SuperNode.
ToSet Stream and Session Parameters through the User Interface
EToset stream p arameters, on the main menu, click:
Tools> Stream Properties > Parameters
EToset session param eters, click Set Session Parameters on the Tools menu.
Figure 5-25
Setting parameters forthe session
Prompt?. Check this box if you want the user to be prompted at runtime to enter a value for
this parameter.
Name. Parameter names are listed here. You can create a new parameter by e ntering a name in this
eld. For example, to create a parameter for the minimum temperat ure, you could type
minvalue
.
Do not include the
$P-
prex that denotes a parameter in CLEM expressions. This n ame is also
used for display in the CLEM Expression Builder.
Longname . Lists the descriptive na me for each parameter created.
Storage. Select a storage type from the list. Storage indicate sh ow the data values are stored in
the parameter. For example, when working with values containing leading z eros that you want
to preserve (such as 008), you should select String as the storage type. Otherwise, the zeros
will be stripped from the value. Available storage types are string, intege r,real, time, d ate, and
timestamp. For date parameters, note that valuesmust be specied u sing ISO standard notation as
shown in the next paragraph.
Value. Lists the current value for each parameter. Adjust the parameter as required. Note that for
date parameters, values must be specied in ISO standard notation (that is, YYYY-MM-DD). Dates
specied in other formats are not accepted.
Type(optional). Ifyou plan to d eploy the stream to an external application, select a measurement
level from the list. Otherwise, i t is advisable to leave the Type column as is. If you want to
specify value constraints for the parameter, such as upper and lower bounds for a numeric range,
select Specify from the list.