Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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 

Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

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

0683p000009M8BY.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

Anonymous
Not applicable
Author

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' 


ChildJob.PNG
ParentJob.PNG