Call pid from different job

Four Stars

Call pid from different job

Hi,

I'm working in a project with two jobs (A and B), the job B need's the pid number of job A to work. I need to use in job B the pid that Stats generate when i execute the job A, without save this pid in a Database ou a file. I tried with "Contexts" and GlobalVar but didin't work. Exist a way to create a variable ou something that i can call in job B?

Sixteen Stars TRF
Sixteen Stars

Re: Call pid from different job

Context variables is the way.

Share your tRunJob settings.


TRF
Four Stars

Re: Call pid from different job

If I want to share the context with pid from job A to job B, but there are 2 jobs in between, as in the picture. Can I?
Another question ... I am using TJavaRow with this "context.PID = pid;" to fill the context, is there another way? with something in context "value" maybe?
Thank you for your help.

 

2019-08-12_1523.png

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog