Overview
Script Tasks in FrameworkX are a powerful feature that allows for the automation of various tasks through scripting. They support code written in C#, VB.NET, and Python, offering a versatile platform for executing custom automated operations within the application. These tasks can be configured to run in response to specific events or on a scheduled basis, enhancing the application's efficiency and functionality.
Script tasks can be self-contained lines of code, call Script Classes or use external DLLs.
On this page:
Table of Contents | ||
---|---|---|
|
Configuring Tasks
Tasks are program units, written in VB.Net,C# or Python, that execute either when a trigger event occurs or periodocally at specified intervals. FactoryStudio includes the following built-in tasks:
- ServerStartup—Executed when the project starts running. Runs on the server (computer running TServer.exe).
- ServerShutdown—Executed when the project shuts down. Runs on the server.
- ClientStartup—Executed on each client when the Displays module (TVisualizer.exe) starts running.
- ClientShutdown—Executed on each client when the Displays module closes.
To configure tasks:
- Go to Scripts > Tasks.
- Select a task name, or select the insert row (first row) to create a new task.
- Enter or select information, as needed.
Column | Description |
Name | Enter a name for the task. The system lets you know if the name is not valid. |
Code | Read-only. This specifies the language used for the code for this task. By default, this is the language you selected when you created the project. From the Code Editor tab, you can change the code language. To change the project default, go to Info > Settings. |
Trigger | Enter or select the event (tag or other object) that should trigger the task execution, if any. The task executes when the value of the object changes. |
Period | Enter the time interval that should occur between executions of the task, if there is no trigger. |
Domain | Select where the script executes:
|
InitialState | Select the task's initial state:
|
BuildStatus | Read-only. Status of the task code from the continuous compiling process.
|
BuildErrors | Read-only. Displays any errors encountered during the last build. |
EditSecurity | Set the security to enable who can edit the tasks. |
Description | Enter a description of this task. |
[Other columns] | For definitions of other columns that are available in this table, see Common Column Definitions. |
Heading 2
Heading 3
ParagraphIn this section...
Page Tree | ||||
---|---|---|---|---|
|