Note: | Groovy and JavaScript are supported as scripting languages. JRuby is deprecated as a scripting language. |
Can Contain | The Groovy or JavaScript code to execute. If no inline code is provided, you must specify a source file for the code to execute. |
Allowed In | mashup | catch | else | elseif | for | foreach | if | macro | operation | sequence | try | while |
Name | Required | Description |
type | yes | The MIME type of the scripting language used, such as 'text/javascript'. |
src | The local file with the scripting code to include and execute here. This is required for code that is not defined within the body of <script>. | |
application | An optional attribute identifying a folder containing JAR files with Java classes that are used within this script code. The Presto Server loads classes from this application folder first. Applications allow POJO services to use third-party libraries that may conflict with Presto your Java application's libraries. Application folders must be deployed in the Application Server hosting the Presto Server. | |
inputvariables | A list of mashup variables separated by commas that the script should have acccess to. | |
outputvariable | The mashup variable to contain the result of the script. |