Scripting (for FIXEdge C++)

Scripting (for FIXEdge C++)

Scripts

Overview

FIXICC H2 allows managing and editing server scripts via UI. After editing, the changes will be applied to the business layer configuration in run time.

To view server scripts:

  1. Click Configurations > Servers > Show all servers (left menu bar)

  2. Select a server in the Servers table view

  3. Click Configurations > View Scripts in the Object view

  4. Script table view is opened in a new tab

Figure. View server scripts

Script table view

Overview

The script table view contains:

  1. A filtering pane

  2. An action pane

  3. A list of scripts in the table

Figure. Script table view

Filtering pane

The filtering pane allows filtering the list of scripts by:

  • Name

  • Description

  • Category (General, Routing, Transformation, Enrichment, Storage, Multi-purpose, Util)

  • Language (JavaScript, XSLT)

  • Status (Enabled, Disabled)

Action pane

  • Create - Allows creating a new script or loading an existing script from a file

  • Clone  - Opens a copy of the selected script for editing in a new tab

  • Edit - Opens the selected script for editing in a new tab

  • Remove - Removes the selected script

List of scripts

The list of scripts contains a filtered list of scripts in the table.

You can customize the table or sort it by any attribute.

Figure. Table sorting and customization

Script details view

The script details view contains the following script details:

  • Name

  • Language (JavaScript, XSLT)

  • Category (General, Routing, Transformation, Enrichment, Storage, Multi-purpose, Util)

  • Status (Enabled, Disabled)

  • Script body

Figure. Script details

The options in the script details view include:

  • View in tab - Opens the script details in a new tab

  • Edit - Opens the script for editing in a new tab

  • Disable/Enable - Disables/enables the script

  • Additional menu - Allows removing the script

Creating a script

To create a new script:

  1. Click Create in the Script table view

  2. Click Create new JavaScript or Create new XSLT


    Figure. Create dropdown (Create script)

Uploading a script

To upload an existing script from a file:

  1. Click Load in the Script table view

  2. Click Load JavaScript file or Load JavaScript file


    Figure. Create dropdown (Upload script)

  3. Drop the script file on the pop-up dialog or click Upload to browse files on your computer


    Figure. Upload file

Removing a script

To remove a script:

  1. Select a script in the Script table view

  2. Click Remove in the Script table view or click Remove in the Script details view


Figure. Remove script

The script cannot be removed until it is used in the business layer configuration.