transsecs_host--_startuptrigger
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| transsecs_host--_startuptrigger [2025/08/14 17:36] – [1. Generic Host StartupTrigger Code Example] amyw | transsecs_host--_startuptrigger [2025/08/14 17:43] (current) – amyw | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== TransSECS Host: StartupTrigger ====== | ====== TransSECS Host: StartupTrigger ====== | ||
| - | ===== 1. Here is a generic Host StartupTrigger | + | ===== 1. StartupTrigger |
| + | The **StartupTrigger** script is a TransSECS host-side initialization script, written in JavaScript for the embedded Java/ | ||
| + | It is responsible for: | ||
| + | * Initializing the host-to-tool SECS/GEM connection. | ||
| + | * Configuring the database connection ( if needed) | ||
| + | * Registering a listener for connection status changes. | ||
| + | * Ensuring the tool is in the `ToolStatus` database table (If need as in the example) | ||
| + | * Logging system parameters. | ||
| + | * Preventing redundant setups with flags. | ||
| + | |||
| + | ===== 2. A Generic Host StartupTrigger Code Example ===== | ||
| + | <code javascript> | ||
| // === Generic Host StartupTrigger === | // === Generic Host StartupTrigger === | ||
| Line 224: | Line 235: | ||
| </ | </ | ||
| - | ===== Purpose ===== | + | =====3. Section-by-Section Breakdown ===== |
| - | The **StartupTrigger** script is a TransSECS host-side initialization script, written in JavaScript for the embedded Java/ | + | |
| - | It is responsible for: | + | |
| - | * Initializing the host-to-tool SECS/GEM connection. | + | |
| - | * Configuring the database connection. | + | |
| - | * Registering a listener for connection status changes. | + | |
| - | * Ensuring the tool is in the `ToolStatus` database table. | + | |
| - | * Logging system parameters. | + | |
| - | * Preventing redundant setups with flags. | + | |
| - | + | ||
| - | ===== Section-by-Section Breakdown ===== | + | |
| **1. Global Setup** | **1. Global Setup** | ||
| Reads config properties (toolID, toolName, loadports) from `ErgoTechConfiguration.properties`. | Reads config properties (toolID, toolName, loadports) from `ErgoTechConfiguration.properties`. | ||
transsecs_host--_startuptrigger.1755207387.txt.gz · Last modified: by amyw
