Using JavaScript Programs in VTA Configurations
You can use JavaScript programs in your VTA configuration for such tasks as calculating a usage metric or an interim accounting interval, specifying an event condition, updating event attributes in processors, and writing scripts to update accounts.
You can include referenced variables in a JavaScript program, such as plug-in attributes, event attributes, or account balances.
When a variable is referenced or updated in the JavaScript program, enclose it in angle brackets (<>) so that the JavaScript program retrieves only the necessary information. Within the JavaScript program, only one instance of the referenced variable must be enclosed in angle brackets.
You define formulas in the JavaScript scripting language (see http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/index.html). The Quota VTA executes the script in the Rhino JavaScript implementation (see http://www.mozilla.org/rhino).
