ScriptTask Class
Name | Description | |
---|---|---|
ScriptTask(RunObj, int) | Construct the instance |
Name | Description | |
---|---|---|
Category | String with configured categories of ScriptTask. | |
Counter | Gets the executions amount since the module has started. | |
Description | Gets the ScriptTask Description configured in EditScriptsTasks. | |
Disable | Disables the ScriptTask execution when the value is greather than zero. | |
Domain |
Indicates the ScriptTask Domain
Server: The ScriptTask runs in the Server context, it cannot access Client objects i.e., Displays or client domain tags. Client: The ScriptTask runs in each Client where the ModuleScript is running. |
|
ErrorMessage | Contains the message with the last (most recent) error that occurred in the script execution. | |
Expression | Gets the expression information. | |
LastDuration | Gets the CPU time used during the last (most recent) execution of the script. | |
LastRun | Contains the TimeSpan of the last (most recent) execution of the script. | |
Level | String with configured levels of ScriptTask. | |
PeakDateTime | Gets the Peak CPU time used during all execution of the script. | |
Period | Period of time required to execute a Task (ms) | |
Running | Indicates if the current script is running. | |
StopExecutionOnError | Flag to indicate if stop script execution on error. | |
Trigger | Gets the Tag or Object that triggers the Task execution. |
Name | Description | |
---|---|---|
CreateEvent(object, bool, bool, int) | Create an event to be executed | |
GetEvent() | Return object containing information being executed |
T.Modules.Script.ScriptTask