[resolved] output parameter of tRunJob

One Star

[resolved] output parameter of tRunJob

Is the jasperETL job has got the feature of returning value?
The jasperETL job that I created contains many subjobs. All the subjobs takes only input parameter and does not return any thing as I did not get that feature available. This makes repeatation of creating similar subjobs.
Can anybody let me know about the output parameter of jasperETL job.
HELP!
Thanks and Regards,
Pravu Mishra.

Accepted Solutions
Community Manager

Re: [resolved] output parameter of tRunJob

Hello
Does the tBufferOutput component fit your need?
Please download the user documentation and learn its usage.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: [resolved] output parameter of tRunJob

Hello
Does the tBufferOutput component fit your need?
Please download the user documentation and learn its usage.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] output parameter of tRunJob

Thanks for your reply.
I am calling another job from the main job by using tRunJob component and passing input parameters to the called job. These parameters gets used by the called job. I need the called job to return value and use that value in the main job.
Example : Job A calls Job B and passes some input value throuth context variable named like "context.val". This value passed using "context.val" gets used by the the B job.
I need the job B to return some value that I can use in job A.
It's some thing like the return value of a method or function in programming languages.
Is there a way to get the return value of B job.

Thanks and Regards,
Pravu Mishra.
Community Manager

Re: [resolved] output parameter of tRunJob

Hello
Yes, it can be finished by tBufferOutput component, please see the screenshot.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] output parameter of tRunJob

Thanks shong.
With warm regards,
Pravu Mishra.
Four Stars

Re: [resolved] output parameter of tRunJob

if we add any component before trunJob (tJava in my case), it no longers returns response back to parent job. Could you please help resolving the issue.

 

My job is as below:

 

 

Moderator

Re: [resolved] output parameter of tRunJob

Hello,

Please use the connector"OnsubjobOk" between tjava and trunjob component.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: [resolved] output parameter of tRunJob

Thanks Sabrina,

My issue got resolved by using tFlowToIterate between tJavaRow and tRunJob component.


@xdshi wrote:

Hello,

Please use the connector"OnsubjobOk" between tjava and trunjob component.

Best regards

Sabrina