(* SCHEMA step_merged_ap_schema; *)
-- IN AP224 RULE project_order_tracking_relationships FOR (directed_action, action_relationship ); WHERE wr1: SIZEOF(QUERY (da <* directed_action| (da.name IN [ 'shop work order', 'resource acquisition order', 'digital technical data package work order', 'pedigree creation order' ]) AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.related_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.relating_action)) AND (ar.relating_action.name = 'project order')))) = 1))) = 0; wr2: SIZEOF(QUERY (da <* directed_action| (da.name = 'project order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.relating_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.related_action)) AND (ar.related_action.name = 'shop work order')))) <= 1))) = 0; wr3: SIZEOF(QUERY (da <* directed_action| (da.name = 'project order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.relating_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.related_action)) AND (ar.related_action.name = 'resource acquisition order')))) <= 1))) = 0; wr4: SIZEOF(QUERY (da <* directed_action| (da.name = 'project order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.relating_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.related_action)) AND (ar.related_action.name = 'digital technical data package work order')))) <= 1))) = 0; wr5: SIZEOF(QUERY (da <* directed_action| (da.name = 'project order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.relating_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.related_action)) AND (ar.related_action.name = 'pedigree creation order')))) <= 1))) = 0; wr6: SIZEOF(QUERY (da <* directed_action| (da.name = 'customer order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.related_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.relating_action)) AND (ar.relating_action.name = 'project order')))) >= 1))) = 0; wr7: SIZEOF(QUERY (da <* directed_action| (da.name = 'project order') AND NOT (SIZEOF(QUERY (ar <* action_relationship| (da :=: ar.relating_action) AND (('STEP_MERGED_AP_SCHEMA.DIRECTED_ACTION' IN TYPEOF(ar.related_action)) AND (ar.related_action.name = 'customer order')))) <= 1))) = 0; END_RULE;
Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00