Introduction to Quota Functions for Scripting

Overview

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.
  • QuotaMgr.HasCurrentSetQuota(“Male”);
    This function will return ‘true’ if the current interview has set the given quota and ‘false’ if it hasn’t.
  • QuotaMgr.HasFilledQuota(“Female”);
    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.

That’s it!

 

Visit us at: http://www.dooblo.net

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.