To call a different job within a job you are developing, you can use the tRunJob component. This component allows you to execute another job as a subjob within a parent job. To pass the parameters to the job you want to call, you can use the context parameters. Context parameters are variables that can store values that can be changed at runtime or between different contexts. You can define context parameters in the Contexts tab of your job and assign them values for each context. You can also pass context parameters from the parent job to the child job by using the Context Param tab of the tRunJob component. This way, you can parameterize the properties or expressions of the child job with the values from the parent job.
You do not need to use a file, command line options, or Java function parameters to pass parameters to a different job. These methods are not supported by Talend Studio and may cause errors or unexpected results. References: Talend Open Studio: Open-source ETL and Free Data Integration | Talend, [tRunJob properties - 7.3], [Contexts - 7.3]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit