Appendix : Legacy Presto components : Mashables and Mashups : Mashups in EMML : Writing Mashups in EMML : Transforming Intermediate Results : <script>
<script>
This statement includes scripting code to execute as the mashup script is processed. Script code can be included as the content of <script> or <script> can import code from an external file deployed in the local server.
Note:  
Groovy and JavaScript are supported as scripting languages.
For more information and examples, see Adding User-Defined Scripting Code to Mashups.
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
Attributes
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 Business Analytics Server loads classes from this application folder first.
Applications allow POJO services to use third-party libraries that may conflict with MashZone NextGen your Java application's libraries. Application folders must be deployed in the Application Server hosting the Business Analytics 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.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback