Skip to main content Skip to complementary content
Close announcements banner

Usage of tJava, tJavaRow and tJavaFlex

This documentation describes the usage and the role of each component in the job design.

Usage of tJava

  • What is a tJava component used for: The tJava component is generally used once to execute a piece of Java code as a separate subJob. Normally, the tJava component has no input or output data flow.
  • Where is tJava used in the Job design: The Java code inserted through the tJava is executed first but only once in the subJob. This component applies exclusively to the start part of the generated code of the subJob.

Usage of tJavaRow

  • What is a tJavaRow component used for: This component applies exclusively to the main part of the generated code of the subJob. It accesses and transforms the input flow and data.
  • Where is tJavaRow used in the Job design: The tJavaRow is generally used once as an intermediary component in order to access and transform the input flow and the data. The Java code inserted through the tJavaRow is executed for each row.

Usage of tJavaFlex

  • What is a tJavaFlex component used for: The start and the end part will be executed only once in the subJob. The main part will be executed for each row. The source data is processed at runtime by the tJavaFlex.
  • Where is tJavaFlex used in the Job design: The component applies to the start, main and end part of the generated code of the subJob. The tJavaFlex is generally used to access the input flow and modify the data. It is the best component to use when initializing operations at the beginning of subJob or processing operations at the end of subJob.
Information noteTip: The tJavaFlex is a combination of tJava and tJavaRow, mixing injection of code on a one-shot basis at the start/end of a Job as well as real data transformations for each row.

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!