Skip to main content Skip to complementary content

Configuring the tJavaFlex component


  1. Double-click tJavaFlex to display its Basic settings view and define the components properties.
  2. Click Sync columns to make sure that the schema is correctly retrieved from the preceding component.
  3. In the Start code field, enter the following code:
    System.out.println("Content of file being transferred:\n");
  4. In the Main code field, enter the code to be applied on each line of data.
    In this example, we want to display the content of the source file based on the defined dynamic schema column:
    Information noteWarning:

    In the Main code field, "row1" refers to the name of the link that connects to tJavaFlex. If you rename this link, you have to modify the code.

  5. In the End code field, enter the code that will be executed in the closing phase.
    In this example, the code indicates the end of the execution of tJavaFlex by displaying the "End of file" message:
    System.out.println("\nEnd of file");

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!