Skip to main content
Archived

fmeserverjobsubmitter new parameters added use default parameter if not set

Related products:Transformers
  • April 1, 2019
  • 1 reply
  • 41 views

giosp
Contributor
Forum|alt.badge.img+7

If I add a new parameter in a workbench that I call from fmeserverjobsubmitter all works with the default parameter until the fmeserverjobsubmitter is not refreshed.

After the refresh of the fmeserverjobsubmitter I have to specify the new variable with a value and I can't leave it blank in the hope that the value is replaced by the default.

I'd like the programming approach:

def myWorkbench(param1, param2 = False):

The param2 is set to false when I call myProcedure(value1) .

The goal is to have the auto set of the value from default parameter in the called workbench.

Now my solution is to set a published parameter, read it from pythonscript parameter and set it in function of the published parameter.

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.

1 reply

michaelpascoe

Also note, that if you do refresh the params for the FMEServerJobSubmitter it appears to round the number params to whole numbers so you then have to manually update each such param back to its float value. It would be much nicer if there was the option to just say "use the default" as @giosp has suggested