RULE product_requires_id_owner

(* SCHEMA step_merged_ap_schema; *)
-- IN AP214
RULE product_requires_id_owner FOR (product );
   WHERE
      wr1:
         SIZEOF(QUERY (prod <* product| (SIZEOF(QUERY (prpc <* USEDIN(prod, 'STEP_MERGED_AP_SCHEMA.PRODUCT_RELATED_PRODUCT_CATEGORY.PRODUCTS')| (prpc.name IN [ 'part', 'tool', 'raw material' ]))) > 0) AND (SIZEOF(QUERY (apoa <* USEDIN(prod, 'STEP_MERGED_AP_SCHEMA.APPLIED_PERSON_AND_ORGANIZATION_ASSIGNMENT.ITEMS')| (apoa\person_and_organization_assignment.role.name = 'id owner'))) + SIZEOF(QUERY (oa <* USEDIN(prod, 'STEP_MERGED_AP_SCHEMA.APPLIED_ORGANIZATION_ASSIGNMENT.ITEMS')| (oa\organization_assignment.role.name = 'id owner'))) <> 1))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00