RULE unique_assembly_component_usage FOR (assembly_component_usage); LOCAL gee : SET OF Product_view_definition := []; gei : SET OF Product_view_definition := []; END_LOCAL; REPEAT i := 1 TO SIZEOF(assembly_component_usage) BY 1; gee := gee + assembly_component_usage[i]\Product_definition_relationship.related_product_definition; gei := gei + assembly_component_usage[i]\Product_definition_relationship.relating_product_definition; END_REPEAT; WHERE wr1: SIZEOF(gee) = SIZEOF(gei); END_RULE; -- unique_assembly_component_usage |
public class RUnique_assembly_component_usage public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |