RULE restrict_applied_classification_assignment_role

(* SCHEMA step_merged_ap_schema; *)
-- IN AP214
RULE restrict_applied_classification_assignment_role FOR (applied_classification_assignment );
   WHERE
      wr1:
         SIZEOF(QUERY (aca <* applied_classification_assignment| ('STEP_MERGED_AP_SCHEMA.' + 'CLASS' IN TYPEOF(aca.assigned_class)) AND NOT (aca.role.name IN [ 'definitional', 'non-definitional', '' ]))) = 0;
      wr2:
         SIZEOF(QUERY (aca <* applied_classification_assignment| (aca.role.name IN [ 'definitional', 'non-definitional', '' ]) AND NOT ('STEP_MERGED_AP_SCHEMA.' + 'CLASS' IN TYPEOF(aca.assigned_class)))) = 0;
      wr3:
         SIZEOF(QUERY (aca <* applied_classification_assignment| ('STEP_MERGED_AP_SCHEMA.' + 'CLASS_SYSTEM' IN TYPEOF(aca.assigned_class)) AND (aca.role.name <> 'class system membership'))) = 0;
      wr4:
         SIZEOF(QUERY (aca <* applied_classification_assignment| (aca.role.name = 'class system membership') AND NOT ('STEP_MERGED_AP_SCHEMA.' + 'CLASS_SYSTEM' IN TYPEOF(aca.assigned_class)))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

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