globalMap.get(tLogCatcher_1.type) in tPostJob Component

Four Stars

globalMap.get(tLogCatcher_1.type) in tPostJob Component

I have a query like below

 

There is a joblet which stores tlogCatcher and tStatCatcher statistics into Mysql database on any Die on error or Java Exception in the job 

 

I have another child job which takes care of sending mail in case of any failure in the job ( In this job_failureNotification  job , i am doing calling AWS SES API sending raw mail with html header , body , footer - Error log i am retrieving from Mysql database based on some condition )

 

I have 14 jobs which runs sequentially one after other .I need to send notification on Job failure only . So i have tPostJob component in each and every job which takes care of calling job_failureNotification . I should call the failureNotification job if and only if tLogCatcher_1.type='tDie' or 'tJavaException' 

 

Is there any way of calling using If condition of globalMap.get(tLogCatcher_1.type) in tPostJob Flow 

Employee

Re: globalMap.get(tLogCatcher_1.type) in tPostJob Component

Hi,

 

     Could you please add the if command using a dummy tJava after PostJob component as shown below?

image.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

Four Stars

Re: globalMap.get(tLogCatcher_1.type) in tPostJob Component

Thanks for your reply but my query is entirely different.

 

As i have asked query, I am looking for info on usage of globalMap.get(tLogCatcher_1.type)  in If condition of the parent job 

 

I should call the failureNotification job if and only if tLogCatcher_1.type='tDie' or 'tJavaException' 

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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog