RULE product_concept_feature_requires_category FOR (product_concept_feature, product_concept_feature_category); WHERE wr1: SIZEOF ( QUERY ( pcf <* product_concept_feature | (SIZEOF(['AUTOMOTIVE_DESIGN.' + 'INCLUSION_PRODUCT_CONCEPT_FEATURE', 'AUTOMOTIVE_DESIGN.' + 'CONDITIONAL_CONCEPT_FEATURE'] * TYPEOF(pcf)) = 0) AND (SIZEOF ( QUERY ( aga <* USEDIN ( pcf , 'AUTOMOTIVE_DESIGN.' + 'APPLIED_GROUP_ASSIGNMENT.' + 'ITEMS' ) | ( aga.role.name = 'specification category member' ) AND ( 'AUTOMOTIVE_DESIGN.' + 'PRODUCT_CONCEPT_FEATURE_CATEGORY' IN TYPEOF ( aga.assigned_group ) ) ) ) <>1 ) ) ) = 0; END_RULE; -- product_concept_feature_requires_category |
public class RProduct_concept_feature_requires_category public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |