How to implement tinfinite in combination with Run if

Six 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


Accepted Solutions
Forteen Stars TRF
Forteen 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
Highlighted
Forteen Stars TRF
Forteen 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

All Replies
Forteen Stars TRF
Forteen 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
Six 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?

Highlighted
Forteen Stars TRF
Forteen 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