Use the On Receiving Transaction tab in active Java transformations to define the behavior of an active Java transformation when it receives a transaction notification. The code snippet for the On Receiving Transaction tab is only executed if the Transaction Scope for the transformation is set to Transaction. You cannot access or set the value of input port variables in this tab.
Access and use the following output data, variables, and methods from the On Receiving Transaction tab:
Output port variables.
Use the names of output ports as variables to access or set output data.
Instance variables and user-defined methods.
Use any instance variables or user-defined methods you declared in the Helper Code tab.
Java transformation API methods.
Call API methods provided by the Java transformation. Use the commit and rollBack API methods to generate a transaction. For example, use the following Java code to generate a transaction after the transformation receives a transaction: