To define the Java transformation functionality, you enter Java code snippets on the
Java
tab. Enter code snippets to import Java packages, write helper code, and write Java code that defines the behavior for specific transformation events. You can develop code snippets in the Java editor in any order.
Enter Java code snippets in the following sections of the Java editor:
Define variables and methods available to all sections except Import Packages.
On Input Row
Define the transformation behavior when it receives an input row.
At End of Data
Define the transformation behavior when it has processed all input data.
On Receiving Transaction
Define the transformation behavior when it receives a transaction notification. Use with active Java transformations.
You cannot use the On Receiving Transaction section in advanced mode.
Access input data and set output data in the On Input Row section. For active transformations, you can also set output data in the At End of Data and On Receiving Transaction sections.