USMeta.Constraints |
At runtime, gets metadata information about constraints from the model developed in USoft Definer. This information takes the form of constraint attribute settings such as the name, the message and the transition table. The actual SQL statement is not returned. Returns an XML document of the form demonstrated in Example 1 below. Syntax
All parameters are optional. Parameter values that you pass are mapped to parameters by alias name. The 'ID' value in the following example is for constraint-name-pattern because of the "Constraints" alias:
(For backward compatibility only, it is possible to supply parameter values by position. Using this syntax, a list of non-aliased values maps to the parameter list in the order stated, with empty values at the end of the list if you supply less than 3 values, and '' (the empty string) as a way of explicitly declaring an empty value.) Constraint-name-pattern is a regular expression that matches zero, one or more constraint names in the model. The result data is limited to constraints matching the pattern. If constraint-name-pattern is omitted, then result data is not limited in this way. Message-pattern is a regular expression that matches zero, one or more messages of constraints in the model. The result data is limited to constraints with a message matching the pattern. If message-pattern is omitted, then result data is not limited in this way. Transition-table-pattern is a regular expression that matches zero, one or more names of transition tables of constraints in the model. The result data is limited to constraints with a transition table whose name matches the pattern. If transition-table-pattern is omitted, then result data is not limited in this way. Example 1 This example returns constraint information about any constraints in the model that have a message containing the word 'correct' :
The return value of this statement could be:
Example 2 This example returns constraint information about all constraints containing the word 'DATE' that have a Transition Table:
The return value of this statement could be:
See also |
![]() |