I need to set attributes based on whether the workspace is running on FME Server or Workbench. I could do a published parameter to manually toggle a value etc. but I would like it to be more automatic. The idea is that when building and testing on Workbench, I get specific behavior related to that environment; if run on FME Server, this behavior adapts as well. Is there a way to determine from within a workspace where it is being run from? Thanks in advance.
Solved
Workspace to determine if running on FME Server
Best answer by nielsgerrits
I do this using python scripted parameters, based on fme_engine. See this topic:
https://knowledge.safe.com/questions/83878/scripted-parameter.html
If fme_engine is empty string then desktop, if contains test then server test, else is server prod.
Works like a dream, develop, push to test, push to prod, not changing anything.
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.
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.



