Skip to main content

I need to pass quite a few parameters (10+) to my workbenches running on FME server. The jobs are started though a call to the FME SERVER rest API, from a c# application.

I'm considering 2 options:

1) specify each parameter individually, which requires some additional coding in c# when calling the workspace.

2) specify a single JSON parameter, which combines the values of all parameters. Passing parameters to the workbench will be more generic, since the set of parameters may be organised in a class and (de)serialized when required.

 

What would be the pros and cons of both methods?

 

Hi r_huesken,

What I usually do is getting the list of all the parameters for each workspace and fill these parameters individually, then run the workspace.

I think it is better that way because you can run preexisting workspace without modifications . Also if someone want to run the workspace directly on FME Server without using your C# application it would be simpler for them then trying to construct a JSON manually to run the workspace.

 

 

 


Hi r_huesken,

What I usually do is getting the list of all the parameters for each workspace and fill these parameters individually, then run the workspace.

I think it is better that way because you can run preexisting workspace without modifications . Also if someone want to run the workspace directly on FME Server without using your C# application it would be simpler for them then trying to construct a JSON manually to run the workspace.

 

 

 

Thanks, useful suggestion.


Reply