One Star

Buffer Input/Output in sub/parent job

Hi,
I'm doing a "while" loop on a subjob. In this subjob I send a variable into a tBufferOutput. I'm trying to retrieve that variable in my parent job through a tBufferInput but there seems to be no row coming out of that buffer... I need it to fill my condition in the loop.
Any idea ?
Thanks,
7 REPLIES
One Star

Re: Buffer Input/Output in sub/parent job

I actually found out that I didn't have to use a tBufferInput. I just have to send my data into a tBufferOutput (in the subjob), and then retrieve it by getting the Main flow of my tRunJob component (in the parent job).
If that can help Smiley Wink
Bye
One Star Jin
One Star

Re: Buffer Input/Output in sub/parent job

Hi Yoot,
I had try like your job in last week.
Child job use tBufferOutput. Parent job retrieve data by tBufferInput.
But , I can't do it and can't find any idea.
So, I use tCreateTmporaryFile.
5631
It can use it. But speed is not so fast.
So if someone have a another solution, I want to know it too!
Best regards.
Jin
One Star Jin
One Star

Re: Buffer Input/Output in sub/parent job

Oh.
That's right! Yoot.
My experience is "retrieve data from grandchild job". Smiley Tongue
So, I couldn't it.
If anyone knows, please give me a information.
Best regards.
Jin
One Star

Re: Buffer Input/Output in sub/parent job

Hmm... Why don't you try to write your grandchild job flow into a tBufferOutput, retrieve it in the child job and rewrite it to another tbufferOutput and finally retrive it in the parent job ? oO That seems strange but I think that could work...
One Star Jin
One Star

Re: Buffer Input/Output in sub/parent job

Hi Yoot,
Sorry, I have to wrote all.
I try following job to get data from granchild + child)
parent job : getting the Main flow(context)
child job : tBufferOutput
granchild job : tBufferOutput
When I ran parent job, I can get only child job's data.
I had try to use tBufferInput in child job and parent job. But it can't work. Smiley Sad
Best regards.
Jin
Seven Stars

Re: Buffer Input/Output in sub/parent job

What do you mean by saying your parent job is getting the Main flow (context)? What exactly are you trying to do?
I have no trouble passing a data flow to tBufferOutput in the grandchild job, then via a flow from tRunJob to tBufferOutput in the child job, then retrieving it via a flow from tRunJob in the parent job.
One Star Jin
One Star

Re: Buffer Input/Output in sub/parent job

Hi alevy, Yoot,
Thank you for your advice.
I can do it!
Before, I connect componet about fig 1.
So, I use "Main flow" to connect to tRunJob on child job.
After, I connect component about fig 2.
I use "OnComponentOK".
Thank you!
Jin