The Scripts Module allows the automation of various tasks through scripting. You can configure these tasks to run in response to specific events or on a scheduled basis, enhancing the application's efficiency and functionality.
Script tasks can call Script Classes or use external DLLs.
On this page:
Tasks are program units, written in VB.Net, C# or Python, that execute either when a trigger event occurs or periodocally at specified intervals. To create and configure a Sctipt Task, follow the steps below:
To modify an existing Script task, double-click and modify the desired field column and make the changes. See a list of available properties in the next section. |
The image below illustrates the process described above.
All soutions include the following built-in tasks:
The following is a table describing each available property field for the Alarm Item:
If a property column is not visible on the grid, enable it by right-clicking the grid header and selecting it from the list. |
Property | Description |
Name | The name of the task. |
Code | Specifies the language used for the code of this task. By default, this is the language you selected when you created the project. You can change the project default by accessing Info > Settings. |
Trigger | The event that triggers the task execution. |
Period | The time interval that should occur between executions of the task, if there is no trigger. |
Domain | The location where the script executes, there are two options:
|
Initial State | The task's initial state, theoiptions are as follows:
|
Build Status | The Status of the task code from the continuous compiling process.
|
Build Errors | Displays any errors encountered during the last build. |
Edit Security | The security to enable who can edit the tasks. |
Description | Description of the task. |