Double-click tJavaFlex to display its
Basic settings view and define the
components properties.
Click Sync columns to retrieve the schema
from the preceding component.
In the Start code field, enter the code
to be executed in the initialization phase.
In this example, the code indicates the initialization of the tJavaFlex component by displaying the START
message and defining the variable to be used afterwards in the Java
code:
System.out.println("## START\n#");
int i = 0;
In the Main code field, enter the code to
be applied on each line of data.
In this example, we want to show the number of each line starting from 0
and then the number and the random text transformed to upper case and
finally the random date set in the editor of tRowGenerator. Then, we create a condition to show if the
status is true or false and we increment the number of the line: