Below is an example Validity check feature configuration that checks if there is a version mismatch in a section, e.g., the section contains uses of both version 1 and version 2 of an item.
Prerequisites
- Familiar with the SystemWeaver meta model building blocks (e.g., Items, Parts and Attributes)
- Familiar with the SystemWeaver Script Language
- An installation of the SystemWeaver Explorer client (swExplorer)
- Assignment of the SW Architect role in the server
Example Meta Model
Example Data
Example Configuration
Note: Please be aware that this check may heavily impact performance. |
<ValidityCheckConfig> <ValidityTypes> <ValidityType validityTypeId="1" name="Error" guiImage="206" toolTip="Test"/> <ValidityType validityTypeId="2" name="Warning" guiImage="207"/> <ValidityType validityTypeId="3" name="Info" guiImage="249"/> </ValidityTypes> <Check name="Version mismatch" select="allReqs:=/DREC; allReqs.SelectMany(curentItem:=.; allReqs[ AncestorHandle = curentItem.AncestorHandle and Handle != curentItem.Handle ])" validityTypeId="2" tag="Versioning" itemType="5DRS"> <Reason description="Diffrent versions of the same Requirement have been used in this Requirement Section"/> <Solution description="Update all versions of the same Requirement to the right version "/> </Check> </ValidityCheckConfig>