Type for subordinate tag ScriptImplementation

back to index
Implementation of a single script

Is a part of the following tags

Description

The script is implemented in the language supported by the script engine that is specified in the enclosing <elekdra.scripting>. There are two options to get the script into Elekdra: See also this web site for general information about the Elekdra scripting concepts.

Sub tags

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).

Generated by ConfigFileDocumentationGenerator Valid HTML 4.01 Transitional