Skip to main content
Best Answer

How to set user parameter value in workflow?

  • February 14, 2018
  • 7 replies
  • 777 views

Hi,

I created some user parameters and want to set their values programmatically some time later (when some data is processed). Is this possible? Or I must set their values initially?

Best answer by takashi

FME configures user parameters before starting the translation, and their values cannot be changed in the workflow later.

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.

7 replies

takashi
Celebrity
  • Best Answer
  • February 14, 2018

FME configures user parameters before starting the translation, and their values cannot be changed in the workflow later.


Forum|alt.badge.img
  • February 14, 2018

Could always break the workbench into two.

One bit is creating the parameters which then is to be passed into the 2nd workbench using the workbench runner


lau
Forum|alt.badge.img+3
  • February 14, 2018

You can work with 2 workspaces. The first one ("The Controler") will be used to set the parameters of the other(s) workspace(s) ("The worker(s)") based on what you want. To trigger a worker, use the WorkspaceRunner transformer in the controler


jneujens
Forum|alt.badge.img
  • February 15, 2018

FME configures user parameters before starting the translation, and their values cannot be changed in the workflow later.

I fully agree. The function of a parameter is that you simply give it a value for the entire process.

 

 

You can work with attribute values instead of parameters if you want to make it more dynamic?

 

 


Forum|alt.badge.img
  • August 22, 2019

You can work with 2 workspaces. The first one ("The Controler") will be used to set the parameters of the other(s) workspace(s) ("The worker(s)") based on what you want. To trigger a worker, use the WorkspaceRunner transformer in the controler

Any Ideas, for this related on one?


Forum|alt.badge.img
  • August 23, 2019

FME configures user parameters before starting the translation, and their values cannot be changed in the workflow later.

user parameters appear they can be deleted tho


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 23, 2019

@tforward no they cannot be deleted during runtime (in this aplication at least and afaik)

(You can fiddle and add some code to actually do that no doubt.)

@theodolite3

But another possibility is to use environment variables, you can set and read them using fme.

I use that to create user variables by fme and have some batch file proces stuff or and visa versa.