Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following sections describe the attributes and child elements of an element of type ScriptType.

...

Localtab live
titleXML Attributes

...

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
titleXML Elements

...

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 section

Always wrap inline scripts with a CDATA section, even if the script contains no special XML characters. This will future-proof your script.

Localtab live
titleXML Attributes

...

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.

ScriptCommonAttributes
ScriptCommonAttributes
Localtab live
titleXML Elements

...

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 section

Always 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
titleXML Attributes
Include PageScriptCommonAttributesScriptCommonAttributes Localtab livetitleXML Elements
Include Page
ScriptCommonElements
ScriptCommonElements

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.

...