Skip to main content

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.

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:
RestrictionDefault limit
Memory500 MB
Script runtime600 seconds × total number of document pages in a transaction
Expressions1,000,000 × total number of document pages in a transaction
Maximum recursion depth100
Maximum array size50,000
Maximum HTTP requests200 × 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.
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

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.