(* SCHEMA Ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf; *)
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 ,
'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF' + '.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 ,
'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF' + '.APPLIED_ORGANIZATION_ASSIGNMENT.ITEMS' ) |
aoa.role.name = 'supplier' )) <>1 ) )) = 0;
END_RULE;
Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:15:33-04:00