Skip to main content
This page describes restrictions on Custom activity scripts and lists the objects and enumerators available in Vantage’s JavaScript environment.

Script restrictions

Vantage’s JavaScript interpreter supports ECMAScript 5.1 and selected later features. For more information, see the Jint ECMAScript features. Scripts can define custom functions, access Vantage data catalogs through the Context interface, and send requests to external services through the Context interface.
Scripts cannot:
  • Send requests to databases other than Vantage data catalogs.
  • Use third-party libraries such as jQuery.
Custom scripts are subject to memory, runtime, command-count, and recursion-depth limits to prevent runaway scripts. If a script exceeds any limit, processing is interrupted with an error. Defaults are set by your server administrator — current defaults:

Error handling

  • If a syntax error is detected in the script, the Custom activity transaction is interrupted. The error is visible in Skill Monitor.
  • If an exception is thrown while the script runs, both the script and the transaction are interrupted. The error is visible in Skill Monitor.
  • If a program exception is caught with try/catch, error handling is whatever your script does.
Errors caused by exceeding script restrictions are not intercepted. In these cases, both the script and the transaction are interrupted.

Object reference

Execution context

Documents and fields

Classification and validation

HTTP

Enumerators

Deprecated interfaces and enumerators