...
The following sections describe the attributes and child elements of an element of type ScriptType
.
...
Localtab live | ||
---|---|---|
|
...
Include Page |
---|
...
Type
...
Default
...
Description
...
language
...
String
...
javascript
...
Defines the JSR-223 language to use
...
customObjectRef
...
Bean ID
...
Any bean defined elsewhere in the configuration
If the customObjectRef
attribute is present, the result of the referenced Spring bean is made available to the script in a variable named custom
. This is in addition to the normal script context discussed below.
Localtab live | ||
---|---|---|
|
...
Name
...
Cardinality
...
Description
...
<Script>
...
An inline script
...
<ScriptFile>
...
Path to a local file or classpath resource containing the script
The script may be stored in a local file (with <ScriptFile>
) or written inline (with <Script>
). An inline script should be wrapped with a CDATA section to prevent interpretation of any special XML characters that may be included in the script.
Tip |
---|
Always wrap inline scripts with a CDATA sectionAlways wrap inline scripts with a CDATA section, even if the script contains no special XML characters. This will future-proof your script. |
Localtab live | ||
---|---|---|
|
...
Name
...
Type
...
Default
...
Description
...
language
...
String
...
javascript
...
Defines the JSR-223 language to use
...
customObjectRef
...
Bean ID
...
Any bean defined elsewhere in the configuration
If the customObjectRef
attribute is present, the result of the referenced Spring bean is made available to the script in a variable named custom
. This is in addition to the normal script context discussed below.
|
Localtab live | ||
---|---|---|
|
...
Name
...
Cardinality
...
Description
...
<Script>
...
An inline script
...
<ScriptFile>
...
Path to a local file or classpath resource containing the script
The script may be stored in a local file (with <ScriptFile>
) or written inline (with <Script>
). An inline script should be wrapped with a CDATA section to prevent interpretation of any special XML characters that may be included in the script.
Tip |
---|
Always wrap inline scripts with a CDATA sectionAlways wrap inline scripts with a CDATA section, even if the script contains no special XML characters. This will future-proof your script. |
Excerpt
Localtab live | ||
---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Script Context
Each element of type ScriptType
provides the relevant script context, that is, one or more input objects (in the general sense) to be utilized by the script. For specific details, consult the individual configuration element pages listed above.
...