Hello Experts,
I have requirement where I need to kick off Data Services job based on Events, Is it possible then how to do it
Thanks,
Nishith
Hi Nishith
I have requirement where I need to kick off Data Services job based on Events A. These are called real-time scenarios.
, Is it possible then how to do it A Yes it is possible
Follow this link
http://wiki.sdn.sap.com/wiki/display/EIM/Realtime+at+a+Glance
Have a look at this doc also
Suraj,
Thanks for your reply, I am unable to open the second doc link, could you please send the link again. Do you have step by step doc to design the job based on Event.
Thank you again for your help..
Regards,
Nishith
Suraj,
Is it possible, let's say whenever csv file appears on my source folder, I want to kick off the job and after loading the data, I want to archive that file in Archive folder.
Thanks for your help..
Regards,
Nishith
Hi
You can schedule the job and use wait_for_file function in BODS to poll for source file, once it gets the file, job will get processed further and once flow gets completed, use the move command in exec function to move the file to archive folder......
Hi, Nishith.
Suraj gave you the best options to accomplish the task you need. The only thing I would like to highlight is that you have 2 options.
One is to schedule a job to run at, let's say, each 5 minutes, use the file_exists function to check if the file is in the specified folder. In case it is, use the exec() command and move the file to the destination folder (e.g.: exec('cmd','move C:\Temp\File.txt D:\CopiedFiles',8);
The other is to use the wait_for_file in a job with the timeout parameter equals to -1. This will cause the job to keep running indefinitely until the file is created. Particularly, I don't like this solution. It keeps an engine running in the Job Server all the time.
I hope I have helped.
Regards,
Leonardo.