context.ftp = "success";
In the real time you will not be running the job from the talend IDE. Rather you would probably export it, may be as a .bat or a .war file (or what ever).
So, one way of solving your issue would be to create an operating system schedule to call your exported job every 10 minutes.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Test drive Talend's enterprise products.