RULE mandatory_part_occurrence_definition_relationship FOR (assembly_component_usage); LOCAL assemblies_of_parts: SET OF Assembly_component_usage := []; END_LOCAL; assemblies_of_parts := QUERY(acr <* Assembly_component_usage | 'ITEM_DEFINITION_STRUCTURE_MIM.PART_VIEW_DEFINITION' IN TYPEOF(acr\Product_definition_relationship.relating_product_definition)); WHERE wr1: SIZEOF(QUERY(ar <* assemblies_of_parts | NOT ('Item_definition_structure_xim.ASSEMBLED_PART_ASSOCIATION' IN TYPEOF(ar)) ))= 0; END_RULE; -- mandatory_part_occurrence_definition_relationship |
public class RMandatory_part_occurrence_definition_relationship public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |