Ok here is a programmatic explanation:
MAX_GLOBAL_CAP = 25000;
MAX_OCCUPATION_CAP = 1000;
currentGlobalCap = xx ; // Current number of eligible applications of ALL occupation;
current2174Cap = yy ; // Current number of eligible applications for a particular occupation, in this example, 2174
If ( currentGlobalCap < MAX_GLOBAL_CAP) then {
if (current2174Cap < 1000) then {
if (application is passed completeness check) then {
currentGlobalCap = currentGlobalCap + 1;
current2174Cap = current2174Cap + 1;
application is accepted; // hurray...
} else { application is returned due to not eligible; }
} else { application is returned due to cap for the occupation is filled; }
} else { application is returned due to global cap is filled; // which is highly unlikely
}
Enjoy!