[resolved] get result from TFileExist in Tmap

One Star

[resolved] get result from TFileExist in Tmap

Hello,
I have in input 2 files path, one on this 2 files doesn't exist, so i use FileExist for test, after it iwould like to get in output one path (exist file).
How do it as I can't add tmap after TFileExist ?
Community Manager

Re: [resolved] get result from TFileExist in Tmap

Hello
Using the global varSmiley Sad(String)globalMap.get("tFileExist_1_FILENAME"))
After tFileExist, using a tFixedFlowInput to generate one row, eg:
ttFileExist--runIf---tFixedFlowInput---tMap
set the conditon of runIf link as: ((Boolean)globalMap.get("tFileExist_1_EXISTS")) //if the file exists, it will pass the file path to tMap
on tFixedFlowInput, only generate one row, define a filed, set the value as: ((String)globalMap.get("tFileExist_1_FILENAME"))

Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] get result from TFileExist in Tmap

Hello, thanks,

Finaly I done nearly same thing but i have used TJavaFlex.

Regards

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

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