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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Reusing a (pre)job

Hello,

I have this subjob that gets/generates a JWT token but since we're going to be using that a lot I'm trying to make it reusable.

What I have now

Job1: Get/Generate JWT token -> put in context var

Job2: Get context var but that's empty so this job fails

I have read https://help.talend.com/r/jomWd_GKqAmTZviwG_oxHQ/ICv6hRE2pgpUtQFvQDmxkg but I still can't get it to work.

Any pointers in the right direction?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Please have a look at the tBufferOuput component which is usually used with tRunJob.

Here is a KB article about: https://community.talend.com/s/article/Returning-a-value-from-a-child-Job-to-the-parent-Job-DqbEu

You could send the values into the buffer in the child job and link your tRunJob to an output components(tlogrow, tMap) and read the value sent back by the child job into the tBufferOutput.

Let us know if it is what you are looking for.

Best regards

Sabrina

 

View solution in original post

2 Replies
Anonymous
Not applicable

Hello,

Please have a look at the tBufferOuput component which is usually used with tRunJob.

Here is a KB article about: https://community.talend.com/s/article/Returning-a-value-from-a-child-Job-to-the-parent-Job-DqbEu

You could send the values into the buffer in the child job and link your tRunJob to an output components(tlogrow, tMap) and read the value sent back by the child job into the tBufferOutput.

Let us know if it is what you are looking for.

Best regards

Sabrina

 

JayQueue
Creator
Creator
Author

Hey @Xiaodi Shi​ 

 

That was the solution, tnx!