Returns the available capacity of an activity (an integer).
Example
Suppose an entity can be routed to one of two identical ovens for a curing process. However, you would like to ensure the ovens are loaded as evenly as possible at all times. The following logic could be used to set an attribute (called a_Router) to a 1 or a 2 based on the available capacity of the ovens. Conditional routings would then be used to route to the appropriate oven:
IF FREECAP(Oven1) > FREECAP(Oven2) THEN
{
a_Router=1
}
ELSE
{
a_Router=2
}