[resolved] Run if example in Talend ETL [How to write condition }

Six Stars

[resolved] Run if example in Talend ETL [How to write condition }

I am using tfileexist tool to find whether file exist or not , if exist than job should send the message saying that " File Exist " else it should through "File doesnot Exist"

Accepted Solutions
Highlighted
Community Manager

Re: [resolved] Run if example in Talend ETL [How to write condition }

You just need to set the condition with the global variable which stores the return result of tFileExist,
if exists:
((Boolean)globalMap.get("tFileExist_1_EXISTS"))
if not exists:
!((Boolean)globalMap.get("tFileExist_1_EXISTS"))
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Highlighted
Community Manager

Re: [resolved] Run if example in Talend ETL [How to write condition }

You just need to set the condition with the global variable which stores the return result of tFileExist,
if exists:
((Boolean)globalMap.get("tFileExist_1_EXISTS"))
if not exists:
!((Boolean)globalMap.get("tFileExist_1_EXISTS"))
----------------------------------------------------------
Talend | Data Agility for Modern Business
Six Stars

Re: [resolved] Run if example in Talend ETL [How to write condition }

My issue is resolved ... thank you shong ,,,,,,,,,,,,,,,,,many thanks

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch