Defining SuperNode Parameters
Parameters for a SuperNode can be defined in both zoomed-out and zoomed-in modes. The parameters defined apply to all encapsulated nodes. To define the parameters of a SuperNode, you first need to access the Parameters tab of the SuperNode dialog box. Use one of the following methods to open the dialog box:
- Double-click a SuperNode in the stream.
- From the SuperNode menu, choose Set Parameters.
- Alternatively, when zoomed in to a SuperNode, choose Set Parameters from the context menu.
Once you have opened the dialog box, the Parameters tab is visible with any previously defined parameters.
To Define a New Parameter
Click the Define Parameters button to open the dialog box.
Name. Parameter names are listed here. You can create a new parameter by entering a name in this field. For example, to create a parameter for the minimum temperature, you could type minvalue. Do not include the $P- prefix that denotes a parameter in CLEM expressions. This name is also used for display in the CLEM Expression Builder.
Long name. Lists the descriptive name for each parameter created.
Storage. Select a storage type from the list. Storage indicates how the data values are stored in the parameter. For example, when working with values containing leading zeros 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, integer, real, time, date, and timestamp. For date parameters, note that values must be specified using 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 specified in ISO standard
notation (that is, YYYY-MM-DD
). Dates specified in other formats are not accepted.
Type (optional). If you plan to deploy the stream to an external application, 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 from the list.
Note that long name, storage, and type options can be set for parameters through the user interface only. These options cannot be set using scripts.
Click the arrows at the right to move the selected parameter further up or down the list of available parameters. Use the delete button (marked with an X) to remove the selected parameter.