Valid Value Elements Additional Attribute
- Last UpdatedFeb 19, 2025
- 1 minute read
Valid Value elements (VVALUE) owned by a DDAT can have a Valid Rule set stored in the attribute VALRULE. VALRULE is an expression attribute that can store an expression that evaluates to a logical true or false value. If the expression does not evaluate to a logical result, or if there are errors in the evaluation of the expression, then the VALRULE will return FALSE when queried. The VVALUE element owns a Valid Value attribute (VALIDV) that is an expression returning a real, logical, text or reference value which supports the owning DDAT element. If the VALRULE is true, or if it is a null expression, then this VALIDV will be available to the DDAT.
VALRULEs are used by the system to control the choice of a Valid Value when property queries are made on the owning DDAT.
For example a DDAT element might own four VVALUE elements with VALIDV and VALRULE attributes as follows:
|
VValue |
VALIDValue expression |
VALRULE expression |
|
VVALUE 1 |
( ID /ANG35x35x15 ) |
( LDPR LENG le 1800 ) |
|
VVALUE 2 |
( ID /ANG40x40x15 ) |
( LDPR LENG gt 1800 and LDPR LENG le 2400 ) |
|
VVALUE 3 |
( ID /ANG45x45x18 ) |
( LDPR LENG gt 2400 and LDPR LENG le 3000 ) |
|
VVALUE 4 |
( ID /ANG50x50x18 ) |
( LDPR LENG gt 3000 ) |
The current set of VALIDValues available for the owning DDAT are the set whose VALRULEs either are unset, or evaluate to TRUE. Those that are not available are those whose VALRULEs either evaluate to FALSE, or whose evaluation generate errors.