At Postjob check for variable and send email

Highlighted
Six Stars

At Postjob check for variable and send email

Hi,

 

When tPostJob component is run, I need to check for a global variable called "passOrFail". If it is set to 1, I do not need to send email, but if "passOrFail" is set to "0" I need to send a failure email. Can some one please let me know how to achieve this ? Basically at the end of job I need to check for a variable value and send or not send an email. Can some one please suggest on how to achieve this ?


Accepted Solutions
Highlighted
Moderator

Re: At Postjob check for variable and send email

Hello,

With the purpose of your job, the Run if trigger feature will be helpful. It triggers a subjob or component in case the condition defined is met.

For further information about Run if, see Run if connection settings.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Highlighted
Moderator

Re: At Postjob check for variable and send email

Hello,

With the purpose of your job, the Run if trigger feature will be helpful. It triggers a subjob or component in case the condition defined is met.

For further information about Run if, see Run if connection settings.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

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