Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Documented parent_job and entry variables.

...

Variable

Description

errors

Number of errors in the previous job entry (long)

lines_input

Number of rows read from database or file (long)

lines_output

Number of rows written to database or file (long)

lines_updated

Number of rows updated in a database table (long)

lines_read

number of rows read from a previous transformation step (long)

lines_written

Number of rows written to a next transformation step (long)

files_retrieved

Number of files retrieved from an FTP server (long)

exit_status

The exit status of a shell script (integer)

nr (integer)

The job entry number; increments at every next job entry

is_windows

use if Pentaho Data Integration runs on Windows (boolean)

parent_job

The parent job of the current job entry (org.pentaho.di.job.Job class)

_entry_

The current job entry (org.pentaho.di.job.entries.JobEntryEval class)

Variables 

 
Here is how you can evaluate the content of a variable string:
parent_job.getVariable("NR_OF_ROWS") == 1000000 
 
Since we have access to the parent_job object, we can also set variables in the parent job this way:
 
parent_job.setVariable("NR_OF_ROWS", "1000000");

...