Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Writing Mashups in EMML | Transforming Intermediate Results | Adding User-Defined Scripting Code to Mashups | Access to Java Classes
 
Access to Java Classes
For JavaScript scripts, the following classes are accessible in a <script> command
*Java language classes.
*Classes in any JAR files deployed in the path identified by the application attribute. See Adding User-Defined or Third-Party Java Classes for JavaScript Access for more information.
*Any class in the classpath for the MashZone NextGen Server.
Use fully-qualified class names, such as in this example:
<script type="text/javascript">
<![CDATA[
var p = java.util.regex.Pattern.compile("a*b");
var m = p.matcher("aaaaab");
var b = m.matches();
print(b);
]]>
</script>
Important: For Java language classes, access is dependent on the version of the JDK used by the application server that hosts the MashZone NextGen Server.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release