Four Stars

How to implement tinfinite in combination with Run if

Hi,

 

I am trying to implement a scenario as in tinfiniteloop --> tFilelist --> Run if (file name contains "cs") ---> Establish FTP connection ---> tFTPput ---> Archive File (tFilecopy).

The requirement is to design a filewatcher as "twaitforfile" doesn't run on UNIX. I tried to introduce even tForEach iteration as "Run if" condition is throwing error but getting error all the time.

 

Any suggestions on how to implement this?

 

Regards

  • Data Integration
2 ACCEPTED SOLUTIONS

Accepted Solutions
Nine Stars TRF
Nine Stars

Re: How to implement tinfinite in combination with Run if

Hi,

Your design looks ok except a missing tSleep between each iteration.

For the "Run if" condition, did you try this:

((String)globalMap.get("tFileList_1_CURRENT_FILE")).contains("cs")

Hope this helps.


TRF
Nine Stars TRF
Nine Stars

Re: How to implement tinfinite in combination with Run if

I suggest you to put it before the tFileList, else you'll wait between each file check.

TRF
3 REPLIES
Nine Stars TRF
Nine Stars

Re: How to implement tinfinite in combination with Run if

Hi,

Your design looks ok except a missing tSleep between each iteration.

For the "Run if" condition, did you try this:

((String)globalMap.get("tFileList_1_CURRENT_FILE")).contains("cs")

Hope this helps.


TRF
Four Stars

Re: How to implement tinfinite in combination with Run if

Yes, I have added that condition check. 

Where shall I use the tSleep component? Is it after tFileList?

Nine Stars TRF
Nine Stars

Re: How to implement tinfinite in combination with Run if

I suggest you to put it before the tFileList, else you'll wait between each file check.

TRF