Skip to main content
Question

Is it possible to transfer a parameter in a URL

  • February 8, 2013
  • 1 reply
  • 11 views

adrian
Contributor
Forum|alt.badge.img+1
Hi, I am wondering if it possible to pass a parameter value to a workbench on FME Server in a URL?

 

 

For example a user clicks on a link from an asset in the GIS which launches FME Server and passes the unique asset ID as a parameter for the workbench file to run against.

 

 

Hope that makes sense lol.

1 reply

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • February 8, 2013
Yep - parameters are what make FME Server work. And running a workspace or initiating it on FME Server is all about building a URL.

 

 

The trick is to build a workspace that you can run in this mode first by publishing the correct parameter. You can prove the concept using 2 workspaces and the WorkspaceRunner. Workspace 1 sends the parameter values to the WorkspaceRunner and that in turns run another workspace. When its working, promote the second workspace to FME Server and swap out your WorkspaceRunner for the FMEServerJobSubmitter...

 

 

Here's an example data download example URL. Both identical but one passes a parameter in the URL to download the airport layer, the other gets the railroad data.

 

 

http://LSNB92:6080/fmedatadownload/Samples/austinDownload.fmw?opt_showresult=false&COORDSYS=LL84&BBOX_COORDSYS=LL84&FORMAT_GENERIC=SHAPE&opt_servicemode=sync&MAXX=-90&MAXY=35&MINY=25&MINX=-100&THEMES=airports   http://LSNB92:6080/fmedatadownload/Samples/austinDownload.fmw?opt_showresult=false&COORDSYS=LL84&BBOX_COORDSYS=LL84&FORMAT_GENERIC=SHAPE&opt_servicemode=sync&MAXX=-90&MAXY=35&MINY=25&MINX=-100&THEMES=railroad

 

 

So all you need to do is configure your workspace and publish an ID parameter instead.

 

 

Best of luck

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings