exact difference between 'die on error' option in component level and
Hi,
I would like to know the exact difference between 'die on error' option in component level and tdie component.I knew 'die on error' option will stop to run once there is an error.Most of the component have die on error option,Using this option also we can capture all kind error for logging.then what is the exact usage of tdie component and in which case can i use tdie component.
Thanks & regards,
Naveen S
Hi
Die on error option make the job die if there is runtime error, tDie is usually used based on the execution result of previous processing, and allows you to customize the error messages. For example, we want to stop the job if there is no data are queried from database.
tMysqlInput_1--main--tLogRow--runIf--tDie
|
onsubjobok
|
other processing
set the condition of runIf link with the global variable:
((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==0
Regards
Shong