Question

How can I run a workspace from my app/script?

  • 7 September 2016
  • 1 reply
  • 1 view

Userlevel 4
Badge +13

How can I run a workspace from my app/script? When I run the workspace, I want to provide a variable that changes how the workspace processes data or even what is processed.


1 reply

Userlevel 4
Badge +13
Published Parameters

External applications can configure workspaces with user parameters, which have been published. Learn about how to create a published parameter. One a published parameter is created, you can test it in FME Desktop and FME Server.

FME Desktop

Use the runWithParameters() method from the FMEWorkpaceRunner class offered by FME Objects to run a workspace and provide published parameters. FME Objects is provided in a number of programming languages including Python, .NET and Java.

FME Server

Use the transact or submit methods from the transformation section of the REST API to run a workspace and provide published parameters. More information on running workspaces from an app/script are available and examples in Python, C# and Java are provided.

If you absolutely have to use an executable, then the FME Server Console is provided as well.

Reply