Skip to main content
Question

FME Server .Net API

  • November 25, 2012
  • 2 replies
  • 16 views

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img
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

davideagle
Contributor
Forum|alt.badge.img+22
  • Contributor
  • December 14, 2012
There's a few options here too that include using the console:  

 

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