Values
A value is a constant, a reference to objects, or a calculation. Values are compared using Relations, or returned in Predicates or a Value-based Function.
Types of Values
Value | Description | Parameters | Child Nodes |
---|---|---|---|
Static |
|||
Constant (Static) Value |
A Constant Value is fixed, and does not change. This can be used on either side of a comparison condition or as part of a more complicated expression. It can be a boolean, an integer, a real (floating point), a string (text), or timestamp. You must specify both the type of value, and the value itself. |
|
N/A |
Null Value |
A Null value always evaluates as null. This can be used to verify if an object attribute value or the result of a calculation is null. Note: Searching on a null value is not valid for arrays. |
N/A |
N/A |
Branch |
|||
Conditional Value |
This value should have a Predicate condition to test and two child values to choose between. If the condition is true, the result is the first child value. If the condition is false, the result is the second child value. |
N/A |
|
Execute Then Return |
Execute the given operation then return the given value. |
|
|
Try…Catch |
Returns the Try value unless it throws an exception, in which it will return the Catch value. Useful to trap errors which would otherwise stop the object iteration or the session from continuing. Example: A string representing a date may not be valid when calling a function to convert it to a timestamp. Use this value to catch the error, use null instead and continue without an error. |
N/A |
|
Built-In |
|||
Aggregate Value |
Calculates a single value by combining others, using functions such as Count, Sum, Average, max, min or geometric union. This value should have a Predicate to test and zero or more child values. This value is computed by aggregating the values over any objects that are satisfied by the Predicate. There are a number of different types of aggregate functions. Detailed information on the child values required are provided in a tool-tip within [Product Name]. |
|
Varies by Function |
Built-in Function Value |
A value which is computed by applying the specified built-in function to one or more parameters. There are typically one or more child values of this element, to specify the parameters which will be passed to the function. When a function has been selected from the list of all possible built-in functions, a help icon provides a tool tip with information about the parameters required by this function. See Built-in Functions. |
|
Varies by Function |
Collection |
|||
Collection Element |
This is a value equal to an element from an array or geometry. The first child value should be the array or geometry. The second child value should be the index into the array, starting from 0. For multi-dimensional arrays or geometries, additional child values may be used as indexes into the nested arrays or geometries. Multiple geometry types are supported:
|
N/A |
Note: At least one integer must be provided for indexing. Multiple values can be provided.
|
Dynamic |
|||
Attribute Value |
A attribute value evaluated by reading the value of an attribute from an object. You must specify the class of the object and the attribute to read. You may optionally select the name of an object identified in an earlier part of the rule, if it is necessary to distinguish between different objects of the same class. |
|
N/A |
Class Name |
Returns the name of the class of an object. The object is specified by the class label or object label pair. |
|
N/A |
Named Lookup Value |
A named lookup value can specify a key word that equates to a value used when running rules Named constants are listed in a metadata store When you insert a named constant, you must select a metadata store, a table of named constants within the metadata store, and a key word within the table. If the key word has an associated code value, when
the rule |
|
N/A |
Nested Value |
A value nested within a composite value. These are used in two ways:
|
|
|
Object or Element Value |
An object or an element from a collection. These are used in two ways:
|
|
N/A |
Session Parameter Value |
Dynamic value. This a value which can be used to access a session parameter that has been set on the session. It is used to provide session-specific values when a session runs If you try and use a session parameter that has not been defined on a session then you get an error. Session values can also be assigned new values within an Action. Specify the name of the session parameter to read. Note: The Parameter Name you provide must match the name of the Session Parameter exactly. It is case sensitive. |
|
N/A |
Mathematical Operators |
|||
Difference |
This value should have two child values (integers or real numbers). The result is obtained by subtracting the second value from the first. |
N/A |
|
Division |
This value should have two child values (integers or real numbers). The result is obtained by dividing the first value by the second. |
N/A |
|
Dynamic Value |
An attribute from an object. An object’s geometry is one of its attributes. You must specify the class of the object and the attribute to read. You may also need to select the name of an object identified in an earlier part of the rule, if it is necessary to distinguish between different objects of the same class. |
|
None |
Negative |
This value should have one child value (an integer or a real number), containing a sign that will be inverted. For example, |
N/A |
|
Product |
This value should have two child values (integers or real numbers). The result is obtained by multiplying together all child values. |
N/A |
|
Remainder |
This value should have two child values (integers or real numbers). The result is obtained by dividing the first value by the second, and taking the remainder. |
N/A |
|
Sum |
This value should have at least two child values (integers or real numbers). The result is the sum of all child values. Alternatively, the values can be string types, in which case they are joined together. |
N/A |
|
Template |
|||
Rule Template |
Import a rule template. The Template parameter allows you to choose existing Rule Templates from the dialog that appears. This only shows Rule Templates and folders that contain them. |
|
|
Temporary |
|||
A temporary value is initially null and can be used to hold temporary results during an action. Note: A temporary value can be used in an action but not in a rule. The value may have either object, task, or session scope.
Note: The data type selection is optional and should always be left blank for Boolean, Real, Integer, Integer64, String, Timestamp, Geometry datatypes. If you wish to set the datatype of temporary value to be an UDT then please select the context. |
|
N/A |