Skip to main content
Solved

How to set user parameter value in workflow?

  • February 14, 2018
  • 7 replies
  • 692 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.

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

7 replies

takashi
Evangelist
  • 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
takashi wrote:

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
lau wrote:

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
takashi wrote:

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.

 

 


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