Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Parent/Child jobs with different contexts but only one is used in the .sh script

Hello,

I have a child with contexts: A and B

I have a parent with contexts: C and D

I call the child a tRunJob with the Context A but the parent is ran with context C

It runs fine in the ToS but when I build to a jar and .sh I only see --context=C %*

Is there a way to build these and run

Child with context A

Parent with context C?

TIA

-J

Labels (2)
1 Solution

Accepted Solutions
JayQueue
Creator
Creator
Author

Adding a context "A" to the parent job with noting in it did the job

View solution in original post

2 Replies
JayQueue
Creator
Creator
Author

Adding a context "A" to the parent job with noting in it did the job

Anonymous
Not applicable

Hello,

You are able to pass context variables from Parent job to Child jobs as well.

1. In the Parent job, all the context variables should be set up completely and correctly.

0695b00000fLOClAAO.png2. In the Child job, add context variables with the same names but without values.

0695b00000fLOCqAAO.png3. In the Parent job -> tRunjob component, select 'Transmit whole context'

0695b00000fLOD0AAO.png4. The context variables can be used in the child jobs now.

Hope it helps you to understand the context value between Parent and Child job