How to pass Component's Name to connected TWarn?

Highlighted
One Star

How to pass Component's Name to connected TWarn?

Hey there,
I have 1 job with a couple tMySQLInout -> tAS400Output subjobs. I would like to create one row in a log file every time a subjob is done. Therefore I connected all TAS400Outputs to one single tWarn (onComponentOk) which messages are catched by tLogCatcher -> tLogRow.
Is there a way to define the name of the connected tAS400Output within tWarn? I haven't found anything in the variables list and using a generic message like "finished" isn't my goal. Also I don't want to create a couple of child jobs (where there is a variable) and run them from a parent job.
Any idea is appreciated!
Many thanks,
Reiko
One Star

Re: How to pass Component's Name to connected TWarn?

Hi Reiko,
Yup, I guess we cannot capture the component names unless you manipulate it in the template ( jar file of each component). My suggestion is, though it's kind a old school, why not put each twarn component to each tAS400Output?

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 4

Pick up some tips and tricks with Context Variables

Blog