Skip to main content
Does anyone have a handy example of programmatically setting a workbench to run at a scheduled time on FME server. The code to submit the workbench to begin with would be nice too.

 

 

Thanks!

 

Vic
Hi,

 

 

you can use the examle from Safe and use the scheduleJob function on the IFMEtransformationManager.

 

 

http://docs.safe.com/fmeserver/html/FME_Server_Reference_Manual/FME_Server_Reference_Manual.htm#APIs/Dotnet/DotnetExample.htm

 

 

 

IFMETransformationManager transformationMgr = serverSession_.GetTransformationManager();

 

IFMETransformationRequest req =

serverSession_.CreateTransformationRequest("SERVER_CONSOLE_CLIENT",

repositoryName, workspaceName);

 

 

 

http://docs.safe.com/fmeserver/html/FME_Server_Reference_Manual/Content/APIs/sdk/dotnet/apidoc/Safe.FMEServer.API.IFMETransformationManager.ScheduleJob2.html

 

 

int seconds;

 

 

long jobid = transformationMgr.ScheduleJob(req, seconds);

 

 

Kind regards

 

Uta
There's a few options here too that include using the console:  

 

http://fmepedia.safe.com/articles/How_To/Scheduling-Jobs-for-FME-Server

 


Reply