RULE restrict_alternative_definition

(* SCHEMA step_merged_ap_schema; *)
-- DIFF IN AP214
-- IN AP203e2/AP214/AP242
RULE restrict_alternative_definition FOR (product_definition );
   LOCAL
      solution_definitions : SET OF product_definition := [];
   END_LOCAL;
      solution_definitions := QUERY (pd <* product_definition| pd.frame_of_reference.name = 'alternative definition');
   WHERE
      wr1:
         SIZEOF(QUERY (pd <* solution_definitions| (SIZEOF(QUERY (pdr <* USEDIN(pd, 'STEP_MERGED_AP_SCHEMA.' + 'PRODUCT_DEFINITION_RELATIONSHIP.RELATED_PRODUCT_DEFINITION')| (pdr.name = 'solution alternative definition'))) <> 1))) = 0;
      wr2:
         SIZEOF(QUERY (pd <* solution_definitions| NOT (pd.name IN [ 'technical', 'supplier', 'technical supplier', '' ]))) = 0;
      WR3:
         SIZEOF(QUERY (pd <* solution_definitions| (pd.name IN [ 'supplier', 'technical supplier' ]) AND (SIZEOF(QUERY (aoa <* USEDIN(pd.formation, 'STEP_MERGED_AP_SCHEMA.' + 'APPLIED_ORGANIZATION_ASSIGNMENT.ITEMS')| (aoa.role.name = 'supplier'))) <> 1))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2017-01-19T11:17:24-05:00