Application DesignOther Block: Run Data Map Script

In a business rule designed in the Configurator, you can add a Run Data Map Script component block to make changes to the data map by using JavaScript. A Data Map Script can alter values in the data map or add a value to the data map, but it does not return a value.

Tip: Before you can add a component block to a business rule, you must create a component set by specifying a trigger that controls when component blocks in the component set are run.

Property Description

Script Engine

Which JavaScript engine to use when running the script.

  • Rhino: Use Rhino, an open source JavaScript engine maintained by the Mozilla Foundation. (Default)
  • Nashorn: Use Nashorn, an open source JavaScript engine maintained by Oracle. It is supported beginning in Loftware Enterprise SP 4.0 and may provide improved performance compared to Rhino. Some methods in the Loftware Enterprise SP JavaScript API are supported only when using Nashorn.

Data Map Script

A script written in JavaScript that can alter values in the data map or add a value to the data map.

Tip: For information about script methods for accessing the data map, see Script Methods for Accessing the Data Map at Runtime. For script methods for retrieving or configuring barcode properties, see Barcode Properties and Script Methods.