The Automation Editor section allows the user to create and edit automation scripts.
There are a variety of options available in the editor, which will be discussed below.
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
General Functions
In the general functions section, the following actions are available:
Name -The name of the automation can be changed if necessary.
Assets - The assets on which the automation will be activated can be changed.
Timing - If you need to use a schedule plan other than what is offered by the system, you can use one of the many tools available online toconvert CRON expressions to readable text format.
Active - Activate the automation if needed.
...
Add Fields
By using the Add Fields tab, the user can select the live and summary fields/keys to be embedded in the script.
Live Data will displayed as: “DATA: {Field.Name}”
Summary Data will displayed as: “SUMMARY: {Field.Name}”
...
Add Functions
The common functions list represents the commands that Galooli currently supports. The followings are the commands and their explanations:
...
...
style | none |
---|
Asset Iteration
Implements a loop that iterates on all the units by using the {MAIN-LIST} and {ACTIVE-ID} keywords. An action can be done to each unit by using the {ACTIVE-ID} keyword (for example await Galooli. Log({ACTIVE-ID}) inside the for each loop)
...
State variables that are "global" may be used in multiple runs of the same script. In order to accomplish this, save a variable as the "Set State" function as follows:
Code Block | ||
---|---|---|
| ||
bool success = await Galooli.SetState(“SomeKey”, “SomeValue”, isGlobal: true); |
...
Code Block | ||
---|---|---|
| ||
await Galooli.SYS_SetValue(/*Unit id*/, /*The unique identifier of the field to set*/, /*The value to set*/); |
Additional Automation Functions
Upload - An automation C# code can be uploaded as a text document by the user. The code will appear in the “Automation Log”
Download - It is possible for the user to download the code, mainly for the purpose of sharing it with others or modifying it and re-uploading it. If no code has been uploaded previously or has been written and saved from the “Automation Log”, the download button will not be available
Verify - An option to verify the executability of the code by compiling it. If the verification fails, the following message will appear:
Execute - In this case, the automation will be executed immediately, rather than according to a schedule. The main objective is to ensure that the code actually performs as expected
Light Mode - Modifies the background of the code section.
...