User Tools

Site Tools


transsecs_host--_startuptrigger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
transsecs_host--_startuptrigger [2025/08/14 17:36] – [1. Generic Host StartupTrigger Code Example] amywtranssecs_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 Code Example =====+===== 1. StartupTrigger Purpose =====
  
 +The **StartupTrigger** script is a TransSECS host-side initialization script, written in JavaScript for the embedded Java/Nashorn engine.  
 +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:
 </code> </code>
  
-===== Purpose ===== +=====3. Section-by-Section Breakdown =====
-The **StartupTrigger** script is a TransSECS host-side initialization script, written in JavaScript for the embedded Java/Nashorn engine.   +
-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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki