Skip to main content
Solved

Get FME Server URL based on something...


tnarladni
Enthusiast
Forum|alt.badge.img+15

I have a "master" workspace that runs other child workspaces via the FMEServerJobSubmitter. I am able to migrate the workspace between development and production FME environment because the account to access the child workspaces exists on all environment. The issue is when I try to get the results of the child workspaces via the HTTPCaller. I am hard-coding in the REST url. I can't migrate between environment unless I change the URL parameter for each environment (migrating involves creating a project, and export it out of one environment and importing into another). Just wondering if there's a way for each environment to build the URL based on something it can get while on that environment? Thanks!

The web connection would have the server host name. Anyway to get that info after the FMEServerJobSubitter maybe?

Best answer by david_r

I usually base my URL off FME_SERVER_HOST and FME_SERVER_PORT:

The values are automatically populated when your workspace is running on FME Server.

View original
Did this help you find an answer to your question?

3 replies

david_r
Evangelist
  • Best Answer
  • February 1, 2019

I usually base my URL off FME_SERVER_HOST and FME_SERVER_PORT:

The values are automatically populated when your workspace is running on FME Server.


tnarladni
Enthusiast
Forum|alt.badge.img+15
  • Author
  • Enthusiast
  • February 1, 2019

tnarladni
Enthusiast
Forum|alt.badge.img+15
  • Author
  • Enthusiast
  • February 1, 2019
david_r wrote:

I usually base my URL off FME_SERVER_HOST and FME_SERVER_PORT:

The values are automatically populated when your workspace is running on FME Server.

Thanks @david_r. I did not know that. Very cool.


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