user manual

69
Building Streams
Parameters can also be set for SuperNodes, in which case they are visible only to nodes
encapsulated
within that SuperNode.
To Set Stream and Session Parameters through the User Interface
E To set stream parameters, on the main menu, click :
Tools > Stream Properties > Parameters
E To set session parame ters, click Set Session Parameters on the Tools menu.
Figure 5-25
Setting parameters for the session
Prompt?. Check this box if you want the user to be promp ted at runtime to enter a value for
this parameter.
Name. Parameter names ar e listed here. You can create a new parameter by entering a name in this
eld. For example, to create a parameter for the minimum temperature, you could type
minvalue
.
Do not include the
$P-
prex that denotes a parameter in CLEM expressions. This name is also
used for display in the CLEM Expression Builder.
Long name. Li sts the descriptive name for each parameter created.
Storage. Select a s torage type fro m the list. Storage indicates ho w the data values are stored in
the par ameter. For exampl e, when working with values containing leading zeros that you w ant
to p r eserve (such as 008), yo u should select String as the storage type. Otherwise, the zeros
will be stripped from the value. Available storage types are string, integer, real, time, date, an d
timesta mp. For date parameters, note that values must be spe cied using ISO standard notation as
shown in the next paragraph.
Value. Lists the cur r ent value for each parameter. Adjust the parameter as required. Note that for
date parameters, values must be specied in ISO standard no tation (tha t is, YYYY-MM-DD). Dates
specied in other formats are not accept ed.
Type (optional). If you plan to deploy the stream to an exte
rnal ap plication, select a measurement
level from the list. Otherwise, it 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 fro m the list.