RULE restrict_effectivity_for_effectivity_relationship FOR (effectivity_relationship); WHERE wr1: SIZEOF ( QUERY ( er <* effectivity_relationship | ( SIZEOF ( ['AUTOMOTIVE_DESIGN.'+ 'LOT_EFFECTIVITY' , 'AUTOMOTIVE_DESIGN.'+ 'SERIAL_NUMBERED_EFFECTIVITY' , 'AUTOMOTIVE_DESIGN.'+ 'PRODUCT_DEFINITION_EFFECTIVITY']* TYPEOF ( er. relating_effectivity ) ) >0 ) OR ( SIZEOF ( ['AUTOMOTIVE_DESIGN.'+ 'LOT_EFFECTIVITY' , 'AUTOMOTIVE_DESIGN.'+ 'SERIAL_NUMBERED_EFFECTIVITY' , 'AUTOMOTIVE_DESIGN.'+ 'PRODUCT_DEFINITION_EFFECTIVITY']* TYPEOF ( er. related_effectivity ) ) >0 ) ) ) =0; END_RULE; -- restrict_effectivity_for_effectivity_relationship |
public class RRestrict_effectivity_for_effectivity_relationship public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |