RULE restrict_collection_category FOR (product_definition); LOCAL collection_definitions: SET OF product_definition := []; END_LOCAL; collection_definitions := QUERY( pd <* product_definition | SIZEOF( QUERY( pdca <* USEDIN( pd, 'PART_COLLECTION_MIM' + '.PRODUCT_DEFINITION_CONTEXT_ASSOCIATION.DEFINITION') | pdca.frame_of_reference.name= 'collection definition')) > 0 ); WHERE wr1: SIZEOF( QUERY( pd <* collection_definitions | NOT ('collection' IN categories_of_product(pd.formation.of_product)) ))= 0; END_RULE; -- restrict_collection_category |
public class RRestrict_collection_category public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |