You can define and call expressions that use the invokeJExpression API method on the
Helpers
and
On Input
code entry tabs.
The following example shows how to complete a lookup on the NAME and ADDRESS input ports in a Java transformation and assign the return value to the COMPANY_NAME output port.
Enter the following code on the
On Input
code entry tab:
COMPANY_NAME = (String)invokeJExpression(":lkp.my_lookup(X1,X2)", new Object [] {str1 ,str2} );
generateRow();