Overview Schemas Index

CATALOG_DATA_INFORMATION_MIM (jsdai.SCatalog_data_information_mim)


RULE restrict_effectivity_usage FOR (effectivity);
 LOCAL other_effectivities : SET OF effectivity ; END_LOCAL ; other_effectivities := QUERY ( e <* effectivity | ( SIZEOF ( [ 'catalog_data_information_mim' + '.dated_effectivity' , 'catalog_data_information_mim' + '.time_interval_based_effectivity' ] * TYPEOF ( e ) ) = 0 ) ) ; 
WHERE
          wr1:  SIZEOF  ( QUERY  ( e <* other_effectivities | ( ( SIZEOF  ( QUERY  ( er <* USEDIN  ( e , 'catalog_data_information_mim' + '.effectivity_relationship.' + 'related_effectivity' ) | er . name = 'inheritance' ) ) = 0 ) OR  ( ( e . id = 'configuration validity' ) AND  ( SIZEOF  ( QUERY  ( cea <* USEDIN  ( e , 'catalog_data_information_mim' + '.effectivity_assignment.assigned_effectivity' ) | 'catalog_data_information_mim' + '.configured_effectivity_assignment' IN  TYPEOF  ( cea ) ) ) = 0 ) ) OR ( ( e . id = 'class usage' ) AND  ( SIZEOF  ( QUERY  ( aea <* USEDIN ( e , 'catalog_data_information_mim' + '.effectivity_assignment.assigned_effectivity' ) | ( 'catalog_data_information_mim' + '.applied_effectivity_assignment' IN  TYPEOF  ( aea ) ) AND ( SIZEOF ( QUERY ( i <* aea . items | 'catalog_data_information_mim' + '.product_concept_feature_category_usage' IN TYPEOF ( i ) ) ) > 0 ) ) ) = 0 ) ) ) ) ) = 0 ;
END_RULE; -- restrict_effectivity_usage

public class RRestrict_effectivity_usage
          public int rWr1(SdaiContext _context)
          public int run(SdaiContext _context, A_string violations)