|
RULE product_requires_id_owner FOR (product); WHERE wr1: SIZEOF ( QUERY ( prod <* product | ( SIZEOF ( QUERY ( prpc <* USEDIN ( prod , 'automotive_design.' + 'product_related_product_category.products' ) | prpc . name IN [ 'part' , 'tool' , 'raw material' ] ) ) > 0 ) AND ( SIZEOF ( QUERY ( apoa <* USEDIN ( prod , 'automotive_design.' + 'applied_person_and_organization_assignment.items' ) | apoa \ person_and_organization_assignment . role . name = 'id owner' ) ) + SIZEOF ( QUERY ( oa <* USEDIN ( prod , 'automotive_design.' + 'applied_organization_assignment.items' ) | oa \ organization_assignment . role . name = 'id owner' ) ) <> 1 ) ) ) = 0 ; END_RULE; -- product_requires_id_owner |
|
public class RProduct_requires_id_owner public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |