RULE restrict_action_resource_requirement_for_process_operation

(* SCHEMA step_merged_ap_schema; *)
-- IN AP214
RULE restrict_action_resource_requirement_for_process_operation FOR (action, action_resource_requirement );
   WHERE
      wr1:
         SIZEOF(QUERY (a <* action| (a.name = 'process operation') AND (SIZEOF(QUERY (arr <* USEDIN(a, 'STEP_MERGED_AP_SCHEMA.ACTION_RESOURCE_REQUIREMENT.OPERATIONS')| (arr.name = 'reference tool'))) > 1))) = 0;
      wr2:
         SIZEOF(QUERY (arr <* action_resource_requirement| ((arr.name = 'reference tool') AND NOT ('STEP_MERGED_AP_SCHEMA.' + 'REQUIREMENT_FOR_ACTION_RESOURCE' IN TYPEOF(arr))) AND (SIZEOF(QUERY (ar <* arr\requirement_for_action_resource.resources| ('STEP_MERGED_AP_SCHEMA.' + 'PRODUCT_DEFINITION_RESOURCE' IN TYPEOF(ar)))) <> 1))) = 0;
      wr3:
         SIZEOF(QUERY (arr <* action_resource_requirement| (arr.name <> 'reference tool') AND (arr.name <> 'non reference tool'))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00