October 2013
Beginner to intermediate
270 pages
5h 41m
English
Sometimes validation rules require multiple inputs to provide a pass/fail result, so it is often easier to build and understand the code if it is written using Java.
If you aren't familiar with code routines in Talend, it is recommended that you first complete the recipe Creating custom functions using code routines, Chapter 5 , Using Java in Talend that will take you through the setup of code routines.
Open the job jo_cook_ch03_0060_validationCodeRoutine.
validation, and copy the following code into it:/** * validateCustomerAge: Check customer is 18 or over for UK, 21 or over for rest of world. * returns true if valid, false if invalid ...
Read now
Unlock full access