Validate Instance Type
Note: This function can only be used with the EDMmodelChecker license key fully installed.
Menu path: Data>Validate>InstanceType
This command invokes the EDMmodelChecker to validate all instances of a particular type in a model, and optionally all instances that is a subtype of this type.
The kind of rules and constraints to be validated, are specified by command options.
A parameter specifies if the actual rules and constraints to be validated are defined in the actual underlying Express schema or in a specified rule schema.
The validation result report will be written to the specified diagnostic file or to the EDMsupervisor output window when no diagnostic file is specified.
Optionally the validation process can be supplied with arguments, hence the validation process can be parameterized.
The interactive EDMdebugger and the EDMsupervisor expressions logging facility can be used for debugging and testing the actual rule as well as finding the reason for a rule being violated.
Arguments:
Repository: |
Specify the name of the open repository that holds the actual instances. Repository names are case sensitive. |
Model: |
Specify the name of the model that holds the actual instances to validate. Model names are case sensitive. |
Entity: |
Specify the name of the instance type, i.e., the name of the entity that defines the instances to validate. Entity names are case insensitive. |
Rule Schema: |
Specify the name of Rule schema(ta) in the EDMdatabase that defines the applicable rules. Schema names are case insensitive. |
Diagnostic file: |
Specify the name of a file to write the result of the validation into. The result will be in ASCII format. The default file extension is ".dia". When this argument is empty (blank), the diagnostic report will be displayed in the EDMsupervisor output window. |
User output file: |
Output produced by the edm extension xpxPrintf , can be directed to a file. |
Options:
accumulating command output: |
A global option that appends the command output to the EDMsupervisor output window. Otherwise the output window is refreshed and only the last command output is displayed. |
clear all options: |
Setting this option disable all other Data>Validate>InstanceType options except [accumulating command output] option. |
match selected input: |
A global option that specifies that only items that partly or exactly matches the string in the related argument input field when activating a Select button, will be in the selection list. An empty (blank) string will match all items. |
subtypes: |
Specifies that all instances in the actual model that is a subtype of the specified instance type in the <Entity> argument will be validated. |
full validation: |
Specifies that the actual instances will be validated against all rules and constrains that is applicable for these instances. |
global rules: |
Specifies that the actual instances will be validated against all applicable global rules. |
local rules: |
Where rules, i.e., rules that are local to entities and types. |
inverse rules: |
Specifies that all Inverse constraints defined for the actual instance types will be validated. |
uniqueness rules: |
Specifies that all Uniqueness rules defined for the actual instance types will be validated. |
required attributes: |
Specifies that all mandatory attributes of the actual instances will be checked for a defined value, i.e., checked that the attribute values are set. This option has no effect when a rule schema is specified in the <Rule Schema> parameter. |
attribute data type: |
Specifies that all attribute values of the actual instances will be checked for legal data type. |
aggregate data type: |
Specifies that all element values in all aggregates owned by the actual instances will be checked for legal data type. |
aggregate size: |
Specifies that the number of elements in all aggregates owned by the actual instances is according to the related aggregate declaration. |
array required elements: |
Specify that all elements in arrays, that is not declared as Optional, owned by the actual instances, will be checked for a defined value, i.e., checked that no unset elements exists. |
aggregate uniqueness: |
Specifies that all aggregates owned by the actual instances will be validated for uniqueness violation. Aggregates that have an uniqueness constraints are all SET aggregates, and ARRAY and LIST that are declared with the optional keyword UNIQUE. |
unset derive attributes: |
Specifies that warnings will be issued if unset derived attributes are found. |
output stepid: |
Specifies that the stepID corresponding to the instanceID will be written to the validation report when the actual correspondence exists in a STEP Identifier model. |
full output: |
Specifies that all possible information about the source of the errors will be recorded in the diagnostic report from this command. |
stop on first error: |
Specifies that the validation process should terminate when the first error is detected. |
activate debugger: |
The EDMdebugger will be invoked when the first statement or expression will be executed by the EDMexpressVM. |
user parameters: |
When this option is enabled, a new dialogue will be shown when the OK-button on the actual dialogue is pushed. In the new dialogue the number of arguments have to be specified, and for each argument the argument data type and argument data value have to be specified. |
populate validation result model: |
If this option is checked, data about the validation is stored in a separate model named EDM_ValidationResults in the SystemRepository in the EDMdatabase. |