Tuesday, 20 November 2012
Talend tRunJob transmit whole context from parent to child job
Problem - you want to call a child job/sub job from your parent job and want to pass context parameters from your parent to child job.
Solution - one way is to use tRunJob in main job to call child job. In the properties of tRunJob component select the child job you want to call and check "Transmit whole context" checkbox and this option will allow entire context parameters to be available/transferred to child job for usage.
This option is useful if you want to export your job out of Talend Studio as executable batch file and want to set context parameters for this main and also pass this entire context to child job.
Subscribe to:
Post Comments (Atom)
I like using the Transmit whole context option and use it a lot but I've been told that it's bad Java to be sending all of my contexts to the child job and causes the programming to be heavy. Is there any arguments for or against using Transmit whole context?
ReplyDelete