Script Restrictions
Vantage’s JavaScript interpreter supports ECMAScript 5.1 (ES5) and a few other more modern encoding standards. For more information, go here).- Scripts can be used to write custom functions.
- Scripts cannot be used to send requests to databases other than Vantage data catalogs, access to which is provided using the Context interface.
- Scripts can be used to send requests to external services using the Context interface.
- Scripts do not support third-party libraries like JQuery.
- Memory: 500 MB
- Script runtime: 600 seconds x total number of document pages in a transaction
- Expressions: 1000000 x total number of document pages in a transaction
- Maximum recursion depth: 100
- Maximum array size: 50000
- Maximum number of HTTP requests that can be carried out in the script: 200 x total number of document pages in a transaction
Processing of Errors
When your script is executed, errors may occur.- If a syntax error is detected in the script, the Custom activity transaction is interrupted. A description of the error can be viewed in the Skill Monitor.
- If an exception is thrown while the script is running, both the script and the transaction are interrupted. A description of the error can be viewed in the Skill Monitor.
- If the program exception is intercepted using try-catch, the error processing logic depends on the author of the script.
Important! Errors caused by exceeding the script restrictions are not intercepted. In this case, both the script and the corresponding transaction are interrupted.
Object Help
See the following help articles for available objects and enumerators:Interfaces
- Context
- Transaction
- Document
- ClassConfidenceModel
- Field
- Page
- RuleError
- BinaryFile
- DocumentExportResult
- Region
- Rectangle
- Parameter
- HttpRequest
- MultipartFormDataRequest
Enumerators
Deprecated Interfaces and Enumerators
- InputData (use Transaction.Documents instead)
- OutputData (use Transaction.Documents instead)
- ExtractedData (use Document instead)
- ExtractedField (use Field instead)
- FieldType (use FieldOcrType instead)
