Tag |
Description |
<name>
Type: String
Cardinality: once
|
Name of the script
This is referenced from a ScriptUsage
|
<code>
Type: String
Cardinality: optional [0..1]
|
Verbatim implementation
This contains the code directly embedded into the XML.
Example
Put the script here, enclosed in a CDATA, so that >, <, & don't accidentally get interpreted by the XML parser and you wonder, why Elekdra won't load the configuration or fails to execute the script.
<code>
<![CDATA[
println("hello world");
]]>
</code>
|
<filename>
Type: String
Cardinality: optional [0..1]
|
Implementation in a file
Filename or path to the file that implements the script. TBD: This path must be relative to the working directory of Elekdra (easy to implement), or relative to the configuration file (better to maintain).
|