[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
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
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
Highlighted
Six Stars

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

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

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.