RULE restrict_group_assignment FOR (applied_group_assignment); WHERE wr2: SIZEOF(QUERY(aeia <* applied_group_assignment | (aeia.role.name = 'group membership') AND (NOT item_correlation (aeia.items, ['GEOMETRIC_REPRESENTATION_ITEM', 'SHAPE_ASPECT'])) ))=0; wr3: SIZEOF(QUERY(aeia <* applied_group_assignment | (aeia.role.name = 'group membership') AND (NOT ((SIZEOF(aeia.items) = SIZEOF( QUERY( i <* aeia.items | 'CATALOG_DATA_INFORMATION_MIM' + '.GEOMETRIC_REPRESENTATION_ITEM' IN TYPEOF(i)))) OR (SIZEOF(aeia.items) = SIZEOF( QUERY( i <* aeia.items | 'CATALOG_DATA_INFORMATION_MIM' + '.SHAPE_ASPECT' IN TYPEOF(i)))))) ))=0; END_RULE; -- restrict_group_assignment |
public class RRestrict_group_assignment public int rWr3(SdaiContext _context) public int rWr2(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |