General
This article provides an overview of the Integrator script engine, including how scripts are executed and how they interact with backend systems.
Description
The Integrator script engine uses JavaScript syntax combined with backend objects exposed from a C# environment. This allows scripts to interact with system data such as transactions, articles, and services.
The integration is enabled through a runtime that exposes backend functionality to the scripting environment.
Key Characteristics
- Scripts are written using JavaScript syntax
- Objects and methods originate from C# backend services
- Scripts are executed server-side
- The environment is not browser-based
Environment Differences
The script engine does not include browser APIs such as:
windowdocument- DOM manipulation
Instead, scripts interact with system objects such as:
transactionarticle- logging and service APIs
Naming Conventions
Object and method names follow backend conventions:
- PascalCase is commonly used (e.g.,
ItemNum,HasChildren) - Naming may differ from standard JavaScript practices