Overview Schemas Index

AUTOMOTIVE_DESIGN (jsdai.SAutomotive_design)


RULE restrict_effectivity_assignment_for_class_category_usage FOR (applied_effectivity_assignment, product_concept_feature_category_usage);

WHERE
          wr1: SIZEOF( QUERY( aea <* applied_effectivity_assignment |
      ((SIZEOF( QUERY( i <* aea.items |
      ('AUTOMOTIVE_DESIGN.PRODUCT_CONCEPT_FEATURE_CATEGORY_USAGE' IN
      TYPEOF(i)) )) > 0) AND ((SIZEOF( QUERY( i <* aea.items |
      ('AUTOMOTIVE_DESIGN.PRODUCT_CONCEPT_FEATURE_CATEGORY_USAGE' IN
      TYPEOF(i)) )) <> SIZEOF(aea.items)) OR
      (SIZEOF(TYPEOF(aea.assigned_effectivity) * 
      ['AUTOMOTIVE_DESIGN.TIME_INTERVAL_BASED_EFFECTIVITY',
       'AUTOMOTIVE_DESIGN.DATED_EFFECTIVITY',
       'AUTOMOTIVE_DESIGN.SERIAL_NUMBERED_EFFECTIVITY',
       'AUTOMOTIVE_DESIGN.LOT_EFFECTIVITY',
       'AUTOMOTIVE_DESIGN.PRODUCT_DEFINITION_EFFECTIVITY']) > 0) OR
      (aea.assigned_effectivity.id <> 'class usage') OR
      (SIZEOF( QUERY ( cueca <* USEDIN(aea,'AUTOMOTIVE_DESIGN.' +
      'EFFECTIVITY_CONTEXT_ASSIGNMENT.ASSIGNED_EFFECTIVITY_ASSIGNMENT') |
      'AUTOMOTIVE_DESIGN.CLASS_USAGE_EFFECTIVITY_CONTEXT_ASSIGNMENT' 
      IN TYPEOF (cueca ) )) = 0)) ))) = 0;
END_RULE; -- restrict_effectivity_assignment_for_class_category_usage

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