Question

How do I manage multiple user parameters 'looping' through a FME workspace in FME Server?

  • 23 September 2021
  • 6 replies
  • 21 views

My question is similar to this one, except I need to get it working on FME Server: https://community.safe.com/s/question/0D54Q000080hOreSAE/loop-through-multiple-choice-user-parameter

 

I cannot use a Workspacerunner in FME Server to run the entire script for each of the user parameters selected. Is there a way to allow a FME Server script to be run for each of the user parameters provided? There may be 1 or 8 user parameters for which the script needs to be run...


6 replies

Userlevel 4

On FME Server you should use the FMEServerJobSubmitter transformer. It will allow you to accomplish the same thing as the WorkspaceRunner.

On FME Server you should use the FMEServerJobSubmitter transformer. It will allow you to accomplish the same thing as the WorkspaceRunner.

Thanks, I made a new workspace with the FMEServerJobSubmitter to run a Server workspace several times. However, can I upload that new workspace to Server and run it from there, or is the FMEServerJobSubmitter meant to be run from a Desktop workspace only?

Our expert said it is better not to use the FMEServerJobSubmitter  and stick to just one workspace on Server. Do you have advice on how else to feed multiple user parameters and 'loop through' a workspace?

Userlevel 4

Thanks, I made a new workspace with the FMEServerJobSubmitter to run a Server workspace several times. However, can I upload that new workspace to Server and run it from there, or is the FMEServerJobSubmitter meant to be run from a Desktop workspace only?

You can of course also use the FMEServerJobSubmitter when running on FME Server, not just FME Desktop.

Userlevel 4

Our expert said it is better not to use the FMEServerJobSubmitter  and stick to just one workspace on Server. Do you have advice on how else to feed multiple user parameters and 'loop through' a workspace?

You could also look into using automations for chaining workspaces: https://community.safe.com/s/article/getting-started-with-automations

You could also look into using automations for chaining workspaces: https://community.safe.com/s/article/getting-started-with-automations

Also a nice suggestion, thanks! However, I need to first be able to run a workspace that uses just one feature multiple times, on Desktop, without using any of the suggested methods. Is this possible using certain grouping and/ or blocking transformers to feed the workspace something, and upon completion, to feed it the next (waiting) feature?

Reply