Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi,
I have created master job in which I have child jobs connected with Run if(true) condition.
Do I need to maintain all the connections and variables to be same in master and child jobs?
Thanks,
Meghana.
 
					
				
		
If your requirement is based on my previous comment, then you can follow below steps to resolve your issue.
You need to specify child's context group value in 'tRunJob' component in Master job as below.
Please mark the topic as resolved if my answer helped you and Kudos are also welcome.
Regards,
Vibin CT.
 manodwhb
		
			manodwhb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		@Suneel,in tRunjob,if you enable transmit whole context then you should have same names ,if you specifically specifying the contexts by not needed.
 manodwhb
		
			manodwhb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		@Suneel,does it solve your question?
 
					
				
		
The issue I am facing is, When I execute master job, then it's taking child job's only default environment context variables in all the environments. Do u have any suggestion on this?
 manodwhb
		
			manodwhb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		@Suneel,are you using the same context variable names in the both master and subjobs?
 
					
				
		
No, varaibles are different in every child job
 manodwhb
		
			manodwhb
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		@Suneel,can you show me that how the context defined and passing form main to sub?
 David_Beaty
		
			David_Beaty
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		You should use a context group to use in the master and child job to ensure the context variables you want to pass are the same name.
Thanks
David
 
					
				
		
There is a master job with 4 env in context
default, dev, qa, prod. This is how it looks.
| Variable | Default | Dev | QA | PROD | 
| filePath | /Desktop | /files | /files | /files | 
Child1
| filePath | /Desktop | /files | /files | /files | 
| ABC@gmail.com | some@gmail.com | some@gmail.com | some@gmail.com | 
Child2
| filePath | /Desktop | /files | /files | /files | 
| ABC@gmail.com | other@gmail.com | other@gmail.com | other@gmail.com | 
And have three environments in Talend cloud too.
So, when I execute master job, master job is executing it's respective environment but taking default context variables of child jobs in all the environments.
I hope u got my point. I don't if master job behaviour is this. But, Can I get any soultion for this?
 
					
				
		
There is a master job with 4 env in context
default, dev, qa, prod
| Job | Default | Dev | QA | PROD | 
| filePath | /Desktop | /files | /files | /files | 
Child1
| filePath | /Desktop | /files | ` | /files | 
| ABC@gmail.com | some@gmail.com | some@gmail.com | some@gmail.com | 
Child2
| filePath | /Desktop | /files | /files | /files | 
| ABC@gmail.com | other@gmail.com | other@gmail.com | other@gmail.com | 
master h=job looks like child1->RunIf(true)->child2.
Now when I execute master job in TIC, master job is taking default context variables of child job in all the environments.
I wanted my master job to take child job's context parameters in it's respective environment. Can I get solution?
Thanks,
Suneel.
