Initializing help system before first use

jvmcalltext

jvmcalltext


Purpose
Call a public static String function in a Java class, returning the value into Mosel as a text value.
Synopsis
function jvmcalltext(qualifiedmethodname:string) : text
function jvmcalltext(qualifiedmethodname:string, ...) : text
Arguments
qualifiedmethodname 
The name of the method, including class and package name, e.g. "com.fico.examples.MathOperations.multiply"
... 
Following the method name, specify zero or more values to pass as arguments to the Java method.
Further information
1. mosjvm will look in the class for a method with the given argument types that is declared as returning a java.lang.String. If such a method cannot be found, the model will terminate with a runtime error.
2. The types of value that may be passed as method arguments are discussed earlier in this guide.
3. If mosjvm has not yet loaded the Java Virtual Machine into the Mosel process, it will be loaded by this function. If Java cannot be found or an error occurs loading it, the model will terminate with a runtime error.
Related topics

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.