External libraries functions stored in .class or .jar files API:
String[][]<function_name> (Object component, String params);
component - interface to processor expert component context com.processorexpert.core.service.api.IPExComponentAPI; null if the calling script is not running for any component;
params - string containing parameters passed to the function
returns - String array of two elements - first element contains array of string that will be generated to script output, second element contains array of macro command strings (see Macro commands topic for list of available commands; %include, %inclSUB, %launchExt and %launchDLL are not supported).
class LaunchExtObjectTestClass { public String[][] testMethod(Object component, String params) { String[][] result = new String[2][2]; //to generate on the script output if (component == null) { result[0][0] = null; result[0][1] = params; } else { result[0][0] = component.toString(); result[0][1] = params + component.toString(); } //macro-commands to execute result[1][0] = "%set ItmSymbol1 Text YYY1"; result[1][1] = "%set ItmSymbol2 Text YYY2"; // return result; } } %launchExt LaunchExtObjectTestClass.class,testMethod,PARAM