ACCEPT

Resource: Property, Field : CommonInterest

Description

Error Messages

1) ERROR, invalid property subtype, where the property type is residential and the common interest is condo.
2) ERROR, invalid structure type, where the property type is residential and the common interest is condo.
3) ERROR, invalid property subtype, where the property type is residential and the common interest is public dwelling.
4) ERROR, invalid property subtype, where the property type is residential and the common interest is stock cooperative.
5) ERROR, invalid property subtype, where the property type is residential and the common interest is coop apartment.
6) ERROR, invalid property subtype, where the property type is residential and the common interest is timeshare.
7) ERROR, invalid property subtype, where the property type is residential and the common interest is none.
8) ERROR, invalid property subtype, where the property type is residential income and the common interest is condo.
9) ERROR, invalid structure type, where the property type is residential income and the common interest is condo.
10) ERROR, invalid property subtype, where the property type is residential income and the common interest is public dwelling.
11) ERROR, invalid property subtype, where the property type is residential income and the common interest is stock cooperative.
12) ERROR, invalid property subtype, where the property type is residential income and the common interest is coop apartment.
13) ERROR, invalid property subtype, where the property type is residential income and the common interest is timeshare.
14) ERROR, invalid property subtype, where the property type is residential income and the common interest is none.
15) ERROR, invalid property subtype, where the property type is land and the common interest is condo.
16) ERROR, invalid structure type, where the property type is land and the common interest is condo.
17) ERROR, invalid property subtype, where the property type is land and the common interest is public dwelling, stock cooperative, coop apartment, or timeshare.
18) ERROR, invalid property subtype, where the property type is land and the common interest is none.
19) ERROR, invalid property subtype, where the property type is land and the common interest is condo.
20) ERROR, invalid structure type, where the property type is land and the common interest is condo.
21) ERROR, invalid structure type, where the property type is commercial and the common interest is public dwelling.
22) ERROR, invalid property subtype, where the property type is commercial and the common interest is public dwelling, stock cooperative.
23) ERROR, invalid property subtype, where the property type is commercial and the common interest is coop apartment.

Fields referenced within this rule

CommonInterest 

PropertySubType 

PropertyType 

StandardStatus 

StructureType 

Syntax with comments and error messages

//[ErrMsg1^ERROR, invalid property subtype, where the property type is residential and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk4^TRUE|LogicBlk5^FALSE]
//[ErrMsg2^ERROR, invalid structure type, where the property type is residential and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk4^TRUE|LogicBlk6^FALSE]
//[ErrMsg3^ERROR, invalid property subtype, where the property type is residential and the common interest is public dwelling.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk7^TRUE|LogicBlk8^FALSE]
//[ErrMsg4^ERROR, invalid property subtype, where the property type is residential and the common interest is stock cooperative.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk9^TRUE|LogicBlk10^FALSE]
//[ErrMsg5^ERROR, invalid property subtype, where the property type is residential and the common interest is coop apartment.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk11^TRUE|LogicBlk12^FALSE]
//[ErrMsg6^ERROR, invalid property subtype, where the property type is residential and the common interest is timeshare.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk13^TRUE|LogicBlk14^FALSE]
//[ErrMsg7^ERROR, invalid property subtype, where the property type is residential and the common interest is none.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk15^TRUE|LogicBlk16^FALSE]
//[ErrMsg8^ERROR, invalid property subtype, where the property type is residential income and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk18^TRUE|LogicBlk19^FALSE]
//[ErrMsg9^ERROR, invalid structure type, where the property type is residential income and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk18^TRUE|LogicBlk20^FALSE]
//[ErrMsg10^ERROR, invalid property subtype, where the property type is residential income and the common interest is public dwelling.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk21^TRUE|LogicBlk22^FALSE]
//[ErrMsg11^ERROR, invalid property subtype, where the property type is residential income and the common interest is stock cooperative.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk23^TRUE|LogicBlk24^FALSE]
//[ErrMsg12^ERROR, invalid property subtype, where the property type is residential income and the common interest is coop apartment.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk25^TRUE|LogicBlk26^FALSE]
//[ErrMsg13^ERROR, invalid property subtype, where the property type is residential income and the common interest is timeshare.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk27^TRUE|LogicBlk28^FALSE]
//[ErrMsg14^ERROR, invalid property subtype, where the property type is residential income and the common interest is none.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk17^TRUE|LogicBlk29^TRUE|LogicBlk30^FALSE]
//[ErrMsg15^ERROR, invalid property subtype, where the property type is land and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk31^TRUE|LogicBlk32^TRUE|LogicBlk33^FALSE]
//[ErrMsg16^ERROR, invalid structure type, where the property type is land and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk31^TRUE|LogicBlk32^TRUE|LogicBlk34^FALSE]
//[ErrMsg17^ERROR, invalid property subtype, where the property type is land and the common interest is public dwelling, stock cooperative, coop apartment, or timeshare.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk31^TRUE|LogicBlk35^TRUE|LogicBlk36^FALSE]
//[ErrMsg18^ERROR, invalid property subtype, where the property type is land and the common interest is none.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk31^TRUE|LogicBlk37^TRUE|LogicBlk38^FALSE]
//[ErrMsg19^ERROR, invalid property subtype, where the property type is land and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk39^TRUE|LogicBlk40^TRUE|LogicBlk41^FALSE]
//[ErrMsg20^ERROR, invalid structure type, where the property type is land and the common interest is condo.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk39^TRUE|LogicBlk40^TRUE|LogicBlk42^FALSE]
//[ErrMsg21^ERROR, invalid structure type, where the property type is commercial and the common interest is public dwelling.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk39^TRUE|LogicBlk43^TRUE|LogicBlk44^FALSE]
//[ErrMsg22^ERROR, invalid property subtype, where the property type is commercial and the common interest is public dwelling, stock cooperative.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk39^TRUE|LogicBlk45^TRUE|LogicBlk46^FALSE]
//[ErrMsg23^ERROR, invalid property subtype, where the property type is commercial and the common interest is coop apartment.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk39^TRUE|LogicBlk47^TRUE|LogicBlk48^FALSE]
// Grandfather clause or...
(/*[LogicBlk1]*/(.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = ('I'))).AND.(StandardStatus.IN.('A','P')))).OR.
// If the structure type is not empty...
IIF((/*[LogicBlk2]*/.ENTRY. != .EMPTY.),
// Then validate possible permutations of 'common interest' and 'property subtype', if the 'property type' is residential or...
((/*[LogicBlk3]*/PropertyType.IN.('Resi')).AND.(((/*[LogicBlk4]*/.ENTRY..IN.('CONDO')).AND.(/*[LogicBlk5]*/.NOT.PropertySubType.IN.('COOP','MANL','OYO','TIME')).AND.(/*[LogicBlk6]*/COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((/*[LogicBlk7]*/.ENTRY..IN.('PD')).AND.(/*[LogicBlk8]*/.NOT.PropertySubType.IN.('COOP','OYO','TIME'))).OR.((/*[LogicBlk9]*/.ENTRY..IN.('COOP')).AND.(/*[LogicBlk10]*/.NOT.PropertySubType.IN.('CONDO','OYO','TIME'))).OR.((/*[LogicBlk11]*/.ENTRY..IN.('COAP')).AND.(/*[LogicBlk12]*/.NOT.PropertySubType.IN.('COOP','CONDO','TIME'))).OR.((/*[LogicBlk13]*/.ENTRY..IN.('TIME')).AND.(/*[LogicBlk14]*/.NOT.PropertySubType.IN.('COOP','CONDO','OYO'))).OR.((/*[LogicBlk15]*/.ENTRY..IN.('NONE')).AND.(/*[LogicBlk16]*/.NOT.PropertySubType.IN.('CONDO','COOP','OYO','STUD','APT','LOFT','TIME'))))).OR.
// validate possible permutations of 'common interest' and 'property subtype', if the 'property type' is residential income or...
((/*[LogicBlk17]*/PropertyType.IN.('Rinc')).AND.(((/*[LogicBlk18]*/.ENTRY..IN.('CONDO')).AND.(/*[LogicBlk19]*/.NOT.PropertySubType.IN.('COOP','MANL','OYO')).AND.(/*[LogicBlk20]*/COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((/*[LogicBlk21]*/.ENTRY..IN.('PD')).AND.(/*[LogicBlk22]*/.NOT.PropertySubType.IN.('COOP','OYO'))).OR.((/*[LogicBlk23]*/.ENTRY..IN.('COOP')).AND.(/*[LogicBlk24]*/.NOT.PropertySubType.IN.('CONDO','OYO'))).OR.((/*[LogicBlk25]*/.ENTRY..IN.('COAP')).AND.(/*[LogicBlk26]*/.NOT.PropertySubType.IN.('COOP','CONDO'))).OR.((/*[LogicBlk27]*/.ENTRY..IN.('TIME')).AND.(/*[LogicBlk28]*/.NOT.PropertySubType.IN.('COOP','CONDO'))).OR.((/*[LogicBlk29]*/.ENTRY..IN.('NONE')).AND.(/*[LogicBlk30]*/.NOT.PropertySubType.IN.('CONDO','COOP','OYO','STUD','APT'))))).OR.
// validate possible permutations of 'common interest' and 'property subtype', if the 'property type' is land or...
((/*[LogicBlk31]*/PropertyType.IN.('Land')).AND.(((/*[LogicBlk32]*/.ENTRY..IN.('CONDO')).AND.(/*[LogicBlk33]*/PropertySubType.IN.('BSLP')).AND.(/*[LogicBlk34]*/COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((/*[LogicBlk35]*/.ENTRY..IN.('PD','COOP','COAP','TIME')).AND.(/*[LogicBlk36]*/(.NOT.PropertySubType.IN.('WPOL')).OR.(PropertySubType = .EMPTY.))).OR.((/*[LogicBlk37]*/.ENTRY..IN.('NONE')).AND.(/*[LogicBlk38]*/(PropertySubType.IN.('WPWL','WPOL','BSLP')).OR.(PropertySubType = .EMPTY.))))).OR.
// validate possible permutations of 'common interest' and 'property subtype', if the 'property type' is commercial or...
((/*[LogicBlk39]*/PropertyType.IN.('Comm')).AND.(((/*[LogicBlk40]*/.ENTRY..IN.('CONDO')).AND.(/*[LogicBlk41]*/.NOT.PropertySubType.IN.('HOT','LND','MOB','BUSI','ARGI')).AND.(/*[LogicBlk42]*/COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((/*[LogicBlk43]*/.ENTRY..IN.('PD')).AND.(/*[LogicBlk44]*/.NOT.PropertySubType.IN.('BUSI'))).OR.((/*[LogicBlk45]*/.ENTRY..IN.('COOP')).AND.(/*[LogicBlk46]*/.NOT.PropertySubType.IN.('HOT','MOB','BUSI'))).OR.((/*[LogicBlk47]*/.ENTRY..IN.('COAP')).AND.(/*[LogicBlk48]*/.NOT.PropertySubType.IN.('HOT','MOB','BUSI'))).OR.(.ENTRY..IN.('NONE')))).OR.
// validate 'property type' is among remaining property types.
(PropertyType.IN.('Rlse','Manu','Clse','Busop','FARM')),
// Else accept as entry is empty.
.TRUE.)

Syntax only

((.ENTRY. = .OLDVALUE.).AND..NOT.(((LASTStandardStatus = .EMPTY.).OR.(LASTStandardStatus = ('I'))).AND.(StandardStatus.IN.('A','P')))).OR.IIF((.ENTRY. != .EMPTY.),((PropertyType.IN.('Resi')).AND.(((.ENTRY..IN.('CONDO')).AND.(.NOT.PropertySubType.IN.('COOP','MANL','OYO','TIME')).AND.(COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((.ENTRY..IN.('PD')).AND.(.NOT.PropertySubType.IN.('COOP','OYO','TIME'))).OR.((.ENTRY..IN.('COOP')).AND.(.NOT.PropertySubType.IN.('CONDO','OYO','TIME'))).OR.((.ENTRY..IN.('COAP')).AND.(.NOT.PropertySubType.IN.('COOP','CONDO','TIME'))).OR.((.ENTRY..IN.('TIME')).AND.(.NOT.PropertySubType.IN.('COOP','CONDO','OYO'))).OR.((.ENTRY..IN.('NONE')).AND.(.NOT.PropertySubType.IN.('CONDO','COOP','OYO','STUD','APT','LOFT','TIME'))))).OR.((PropertyType.IN.('Rinc')).AND.(((.ENTRY..IN.('CONDO')).AND.(.NOT.PropertySubType.IN.('COOP','MANL','OYO')).AND.(COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((.ENTRY..IN.('PD')).AND.(.NOT.PropertySubType.IN.('COOP','OYO'))).OR.((.ENTRY..IN.('COOP')).AND.(.NOT.PropertySubType.IN.('CONDO','OYO'))).OR.((.ENTRY..IN.('COAP')).AND.(.NOT.PropertySubType.IN.('COOP','CONDO'))).OR.((.ENTRY..IN.('TIME')).AND.(.NOT.PropertySubType.IN.('COOP','CONDO'))).OR.((.ENTRY..IN.('NONE')).AND.(.NOT.PropertySubType.IN.('CONDO','COOP','OYO','STUD','APT'))))).OR.((PropertyType.IN.('Land')).AND.(((.ENTRY..IN.('CONDO')).AND.(PropertySubType.IN.('BSLP')).AND.(COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((.ENTRY..IN.('PD','COOP','COAP','TIME')).AND.((.NOT.PropertySubType.IN.('WPOL')).OR.(PropertySubType = .EMPTY.))).OR.((.ENTRY..IN.('NONE')).AND.((PropertySubType.IN.('WPWL','WPOL','BSLP')).OR.(PropertySubType = .EMPTY.))))).OR.((PropertyType.IN.('Comm')).AND.(((.ENTRY..IN.('CONDO')).AND.(.NOT.PropertySubType.IN.('HOT','LND','MOB','BUSI','ARGI')).AND.(COUNT(INTERSECTION(SET('MANUH','NONE'),ARRAY(StructureType))) = 0)).OR.((.ENTRY..IN.('PD')).AND.(.NOT.PropertySubType.IN.('BUSI'))).OR.((.ENTRY..IN.('COOP')).AND.(.NOT.PropertySubType.IN.('HOT','MOB','BUSI'))).OR.((.ENTRY..IN.('COAP')).AND.(.NOT.PropertySubType.IN.('HOT','MOB','BUSI'))).OR.(.ENTRY..IN.('NONE')))).OR.(PropertyType.IN.('Rlse','Manu','Clse','Busop','FARM')),.TRUE.)

Rule Unique ID

687983b4-f369-4fe0-a16f-21cef77884fc

Rule Number

47