Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Passing data flow to tRunjob

Hi,
I'm new to Talend and I have a couple of questions regarding tRunjob.
I'd like to know if it's possible to pass a data flow to a tRunjob to compute, and if it is, what's the component used as an input in the child job.
Regards,
ml
Labels (2)
15 Replies
Anonymous
Not applicable

Passing data to a client job is usually done with a context.
If you look at the component properties you can see that you can set context variables of your sub job. Before you do so you need to declare a context in your sub job.
You can for example dump your data into a file, communicate the file name to the sub job as context variable, open the file in your sub-job and process the data, store the output in a tBufferOutput, return the buffer to the parent job and continue the processing in your parent job with a flow from the job icon (the data comes from your buffer).
I think there is no interactive communication between parent and sub job. Does passing down the data fulfil your requirement?
_AnonymousUser
Specialist III
Specialist III
Author

Actually, I don't want to generate any temporary file. I've already thought about the context variables, but I want to use some components like tAggregate on the input flow in the subjob. So the link between the father and the child must be a data flow, it's like using a main row that will be between a component in the father job and the tRunjob.
_AnonymousUser
Specialist III
Specialist III
Author

Here is a little screenshot of what I want to do:

I want to split one huge Job into 2 jobs, with the upper part working as a father job and the lower one as a child Job. The splitting must be at the data flow coming from the filter.
Thanks for your time.
Anonymous
Not applicable

I can?t see your picture.
The parent job is not running when TOS is executing the sub-job (at least that?s my understanding) therefore I don?t see how you could establish a flow between them.
Sometimes I?m complicating things because I like to have them well organized. Are you sure it?s the best approach to split your work in two parts if the different parts need to talk to each other? Seeing your picture would probably answer my question. My firewall is very restrictive on displaying images, would it be possible for you to use the forum picture attachment functionality instead of in-text linkage?
Anonymous
Not applicable

Anonymous
Not applicable

My problem is that my firewall is blocking common image provider. I will not see your picture if it is hosted outside of the forum. Do you have seen the functionality to direct upload the image with your post?
Anonymous
Not applicable

Now that I'm logged-in, I have the option 0683p000009MAB6.png.
Here it is:
Anonymous
Not applicable

Hi All
The parent job is not running when TOS is executing the sub-job (at least that?s my understanding) therefore I don?t see how you could establish a flow between them.

Yes, Vaiko is right. The father job is not running when you execute the child job. Generally speacking, one job is created for one function and use servel tRunJob to run father job and all the chird jobs continuity. Spliting the function in different jobs is not stable and readable.
Best regards
shong
Anonymous
Not applicable

Thanks for these answers. I was thinking about using a child job because I want to reuse the lower part of the job in other jobs, Is it possible by any means other than the unreliable copy/paste?