ExecuteJavaN

ExecuteJavaN executes a Java™ TurboIntegrator process that returns a number. If you want to execute a Java TurboIntegrator process that returns a string, use ExecuteJavaS.

This is a TM1® TurboIntegrator function, valid only in TM1 TurboIntegrator.

The EvalJavaN rules function provides analogous functionality in TM1 rules.

Syntax

ExecuteJavaN('JavaTIClass', ['OptionalParameter1', 'OptionalParameter2', ...] )

Argument

Description

JavaTIClass

The fully qualified name of the Java TurboIntegrator class you want to execute.

OptionalParameters

Optional parameters that are passed to the Java TurboIntegrator process itself. You can pass as many parameters as necessary, including none.

You can only pass strings as parameters, you cannot pass numbers. You can use the StringToNumber TurboIntegrator function to pass numbers to Java TurboIntegrator scripts.

A Java TurboIntegrator class which returns a number and can be called from ExecuteJavaN should use the following pattern.

package com.example;

importcom.ibm.cognos.tm1.javati.JavaTI;

@JavaTI
public class MyTestTI {
	public static double MyTestTI (String [] args) [
	...
	return ...;
	}
}

Example

ExecuteJavaN('com.example.MyTestTI', 'First', 'Second', 'Third');