Skip to main content
Solved

Different values for user parameters depending if workspace is locally run or in FME Flow

  • September 30, 2025
  • 4 replies
  • 110 views

tb09114
Supporter
Forum|alt.badge.img+27

I believe there is the possibility to configure user parameters in a way that they take a local path for in/output and when they are going to be published the provided alternative for the FME Flow resources path is used.

I cannot find my bookmark on how to do this and did not come to anything useful when searching the net.
Does somebody have a tutorial on how to configure the user parameter that it uses the local resources when run in FME Form and the FME Flow resources when run in Flow?

Best answer by virtualcitymatt

Are you looking for Deployment Parameters? https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/Deployment-Parameters.htm

 

To use a different value for the parameter when the workspace runs from FME Workbench than when it runs from FME Flow, select Use Local Value in the Create FME Flow Deployment Parameter dialog, and enter the value to use in FME Workbench. To set a local value after a deployment parameter is created, right-click on it in the Navigator and select Set Local Value.

Local values are saved with workspaces, but do not deploy to FME Flow. Local values are indicated in the Navigator with [local value] appended:

 

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.

4 replies

birgit
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 30, 2025

You can create a parameter that uses a python script that test if you have engine names. FME can only find engine names if the workbench is run on FME Flow. Here is the most simple python way:

VarLocal = "ANiceLocalPath"
VarFlow = "ANiceFlowPath"

if FME_MacroValues.get('FME_ENGINE', '') == '':
return VarLocal
else:
return VarFlow

edit: if you even have different engine names between your test FME Flow and Prod FME FLow you can use those names to also change the path between Flow Test and Flow Prod. We use this all the time.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • Best Answer
  • October 1, 2025

Are you looking for Deployment Parameters? https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/Deployment-Parameters.htm

 

To use a different value for the parameter when the workspace runs from FME Workbench than when it runs from FME Flow, select Use Local Value in the Create FME Flow Deployment Parameter dialog, and enter the value to use in FME Workbench. To set a local value after a deployment parameter is created, right-click on it in the Navigator and select Set Local Value.

Local values are saved with workspaces, but do not deploy to FME Flow. Local values are indicated in the Navigator with [local value] appended:

 


tb09114
Supporter
Forum|alt.badge.img+27
  • Author
  • Supporter
  • October 1, 2025

Yes, ​@virtualcitymatt I was looking for Deployment Parameters! Thanks a lot.
But I will keep the Python ​@birgit it has a nice touch as well. 😉


ebygomm
Influencer
Forum|alt.badge.img+45
  • Influencer
  • October 1, 2025

If a parameter is pointing to a resource folder on FME Flow you can also just set the FME Flow Parameter - FME_SHAREDRESOURCE_DATA to point to a local folder when running on FME Form