|
RULE restrict_product_definition_context_for_product FOR (product_definition); WHERE wr2: SIZEOF ( QUERY ( pd <* product_definition | ( pd . frame_of_reference . name = 'functional definition' ) AND ( SIZEOF ( QUERY ( prpc <* USEDIN ( pd . formation . of_product , 'catalog_data_information_mim' + '.product_related_product_category.products' ) | prpc . name = 'functionality' ) ) = 0 ) ) ) = 0 ; wr3: SIZEOF ( QUERY ( pd <* product_definition | ( pd . frame_of_reference . name = 'conceptual definition' ) AND ( SIZEOF ( QUERY ( prpc <* USEDIN ( pd . formation . of_product , 'catalog_data_information_mim' + '.product_related_product_category.products' ) | prpc . name = 'conceptual product' ) ) = 0 ) ) ) = 0 ; wr7: SIZEOF ( QUERY ( pd <* product_definition | ( pd . frame_of_reference . name IN [ 'physical document definition' , 'digital document definition' , 'physical model_occurrence' ] ) AND ( SIZEOF ( QUERY ( prpc <* USEDIN ( pd . formation . of_product , 'catalog_data_information_mim' + '.product_related_product_category.products' ) | prpc . name = 'document' ) ) = 0 ) ) ) = 0 ; END_RULE; -- restrict_product_definition_context_for_product |
|
public class RRestrict_product_definition_context_for_product public int rWr7(SdaiContext _context) public int rWr3(SdaiContext _context) public int rWr2(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |