Before Exit
Before Exit Visual Logic is a special case of Visual Logic that allows control over an Activity when its route out is blocked. Before Exit Visual Logic runs whenever an item leaves an Activity, and also when the route out is blocked. The Before Exit Visual Logic then will run continuously until a valid exit route is available.
Additionally, Before Exit Visual Logic is designed to work with Label Based routing where the Label used for Routing has a value 0.
For example, a Label value might be set to 0 when the content of a Queue reaches 10, so that the Activity is unable to route the item out. When the content of the Activity is less than 10 then the Label is assigned a value of 1 and the item is allowed to continue to the Activity.