exact difference between 'die on error' option in component level and

Four Stars

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
Community Manager

Re: exact difference between 'die on error' option in component level and

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
Four Stars

Re: exact difference between 'die on error' option in component level and

Thanks a lot Shong!