Scripts are the seventh category of transformations

A script is something that is done directly through program code.

See the previous blog post for more information on transformation concepts and usage

Concept of transformation

The specific use

Javascript scripting is the use of Javascript language through code programming to complete the operation of data flow. There are many built-in functions in JS that can be viewed while writing JS code.

Incompatible mode and compatible mode.

Incompatible mode: This is the default and recommended. Compatibility mode: The kettle is compatible with an earlier version.

MyVar = FieldName; myVar = FieldName; 6 myVar = fieldName.getString (); 7 myVar = FieldName.getNumber(); Incompatible mode: use the FieldName directly, e.g. 12 FieldName = myVar; 13 14 Compatibility mode: use 15 fieldName.setValue (myVar); Var myVar = new java.lang.String(" pentahochina.com "); 21 and 22 compatibility mode: 23 var myVar = new Packages. Java. Lang. String (" pentahochina.com ");Copy the code

Javascript scripting is the use of Javascript language through code programming to complete the operation of data flow.

Java scripting is the use of the Java language through code programming to complete the operation of data flows. There are many built-in functions that can be used directly.

The processRow () function

The Java script Main, which corresponds to a processRow() function, is used to process the data flow!

\

Execute an SQL script to execute an UPDATE statement to update the data in a table.

\