Skip to main content

I would like some quick instruction on how to automate the start of an FMW process. The current FMW uses a series of files that it converts based on date (i.e. the date is in the filename). I need a Python script to be able to load those files into the FMW project once a month and then run the conversion process.

 

 

I realize that this would be best done using FME Server...but what I'm trying to do is build a "proof-of-concept" for management here (they will see and understand the pitfalls of automating a desktop process to run indefinitely).

Thank you

If you look at the top of the FME log file (after running a worskpace) you'll see the command line that can be used to run that job. Have that fire from a Python script (or a task scheduler) and that's about it.

Before my company had FME Server I had setup FME workspaces using Python with Windows task scheduler.

Here are some helpful links to get you started.

 

Windows Task Scheduler with Python

http://theautomatic.net/2017/10/03/running-python-task-scheduler/

Run an FME Workspace using Python

 

https://knowledge.safe.com/articles/1158/run-an-fme-workspace-from-python-using-fmeworkspac.html

fmeobjects.FMEWorkspaceRunner

https://docs.safe.com/fme/html/fmepython/api/fmeobjects/_utilities/fmeobjects.FMEWorkspaceRunner.html

 


Excellent answers...thank you very much. I will continue testing and experimenting.


Reply