Hi,
I was wondering could any of the python experts help me. I'm trying to write a python shut down script that calls FME Server and passes some parameter values into a workspace to run on Server.
I can successfully do the same on Desktop- run a workspace collect information in the shutdown script about featuresRead, featureswritten, timings and so on and kick off a new workspace using these values which records and reports on this.
So I was testing could I complete the same task on Server -- I am able to run the workspace on server as part of the shut down script but right now I am just populating all the parameter values with "Test".
#Building URL for FME Server# fmeURL='''http://SERVERFME03/fmejobsubmitter/Samples/samplepythonlogging.fmw?DestDataset_XLSXW=C%3A%5CFMESERVER_PRIME2%5Cshutdown%5Ctest_write.xlsx&Written;=test&Read;=test&FeaturesLogged;=TEST&Time;=TEST&maxmemory;=TEST&Status;=TEST&Error;=TEST&Location;=TEST&Workspace;=TEST&Build;=TEST&opt;_showresult=false&opt;_servicemode=sync '''What is the correct syntax to replace "test" with the variables I have created regarding information about the translation-- eg fme.totalFeaturesRead etc. I have managed to do this through desktop but I just can't get the correct information to log when I test on Server, any advice would be appreciated as I am trying to learn python myself (slowly)
Thanks
Best answer by ciarab
View original