October 2013
Beginner to intermediate
270 pages
5h 41m
English
Most jobs at some point require validation and will often need to be stopped if the data is found to be in error. In most cases, you can use tDie, however, if your error is found in a tJavaRow or tJava, then using tDie becomes quite convoluted. This exercise shows how the same results can be achieved using simple Java functionality.
Open the jo_cook_ch10_0150_killingJobtJavaRow job.
The steps for killing a job from within tJavaRow are as follows:
output_row.age = input_row.age; to the following code:if (input.age == null) { System.out.println("Fatal Error: age is null"); System.exit(99); } else { output_row.age ...Read now
Unlock full access