MOFScript has built-in support for invoking external Java code, which enables the integration of external (black box) operations from within MOFScript. This is done with the java operation.
The syntax is as follows:
java (String className, String methodName,The method invoked may be static or class scope. If it is non-static, the class must have a default constructor. The parameters may be null, a single parameter (e.g. a String, an integer etc) or a List of parameters if the method takes several parameters.
println ("Java: " + java ("org.test.MyTestClass", "myTestString1", null, "c:/Working/TestJava/"))