Introduction to Quota functions for scripting
This how-to will introduce you to the functions of QuotaMgr.
These set of functions allow you to communicate with your quotas throughout your scripts, dynamically while an interview is conducted.
This might come in handy when the script logics are quota dependent.
The QuotaMgr functions:
- QuotaMgr.GetQuotaCurrent(“name of your quota”);
This function will get the current number filled by the given quota name.
- QuotaMgr.GetQuotaTotal(“name of your quota”);
This function will get the current target of the given quota name.
This function will return ‘true’ if the current interview has set the given quota and ‘false’ if it hasn’t.
This function will return ‘true’ if the current quota is full and ‘false’ if it isn’t full.
You can use these functions in any script, but please note, that the quota name must be exactly as it is written in your quota configuration’s, if it is not the same, it would not work.
Visit us at: http://www.dooblo.net