Script – is a C# script that imports data from external sources to KPI values.
Creating a script
To create a script, right click on Scripts and select Create in the context menu.
Fig. 1. Creating a script
In the appeared window, enter the script name and click OK (fig. 2).
Fig. 2. Script creation window
The script editor will open where you can enter your C# script that will collect data about KPI values (fig. 3).
Fig. 3. Script editor.
Scheduler tasks
For a script to work in Web Application, you need to create a scheduler task and specify the script schedule in it.
Let’s create a task that will start the script every day at the same time. On the Common tab, specify the required schedule:
Fig. 3. Common tab.
For a script to work in Web Application, you need to create a scheduler task and specify the script schedule in it. Read more about the scheduler in ELMA Help.
Editing a script
There are two ways to open a script for editing:
In the object tree open the script context menu and select Edit properties;
Double-click on the script.
The script editor will open and you will be able to edit the script.
Deleting a script
To delete a script do one of the following:
In the object tree open the script context menu and select Delete;
Double-click on the script and press Delete on your keyboard.
In order for these changes to become active in Web Application, publish the KPI model.