This page describes restrictions on Custom activity scripts and lists the objects and enumerators available in Vantage’s JavaScript environment.Documentation Index
Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
Use this file to discover all available pages before exploring further.
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 theContext 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.
| Restriction | Default limit |
|---|---|
| Memory | 500 MB |
| Script runtime | 600 seconds × total number of document pages in a transaction |
| Expressions | 1,000,000 × total number of document pages in a transaction |
| Maximum recursion depth | 100 |
| Maximum array size | 50,000 |
| Maximum HTTP requests | 200 × total number of document pages in a transaction |
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.
Object reference
Execution context
Documents and fields
Classification and validation
HTTP
Enumerators
Deprecated interfaces and enumerators
Related topics
Custom activity
Extend skills with scripted logic and third-party integrations.
Sample scripts
JavaScript samples for OAuth, exports, field updates, and table manipulation.
Context
Global object for transaction data, HTTP requests, and secrets.
