Skip to main content
Solved

FMEServer choice parameter api submit check

  • December 15, 2020
  • 2 replies
  • 13 views

giosp
Contributor
Forum|alt.badge.img+6
  • Contributor

Dear All,

I've a question about choice parameter in FMEServer.

I've published a workbench with some parameters. One paramter is a choice list (single). When I use the interface all is ok because I can specify only the items in the list.

 

Now, I have some procedures that call the workbench by rest api. I've expected that FMEServer checked the submitted parameters with the list in the choice list but this didn't happen.

 

I have to check in the workbench the input paramters?

Best answer by hollyatsafe

Hi @giosp​ ,

 

This is the expected behaviour when a workspace is submitted via the Rest API as parameter validation checks occur within the Web UI rather than in the job request. Therefore if you are submitting workspaces via the Rest API you will need to author your workspace to perform additional parameter checks and terminate the translation if the requirements are not met.

 

There is an enhancement request to support parameter validation in the Rest API (Internal reference: FMESERVER-15709) however there is no planned work at the moment. Should the status of this request change I will update you via this post.

 

 

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

2 replies

Forum|alt.badge.img+2
  • Best Answer
  • December 22, 2020

Hi @giosp​ ,

 

This is the expected behaviour when a workspace is submitted via the Rest API as parameter validation checks occur within the Web UI rather than in the job request. Therefore if you are submitting workspaces via the Rest API you will need to author your workspace to perform additional parameter checks and terminate the translation if the requirements are not met.

 

There is an enhancement request to support parameter validation in the Rest API (Internal reference: FMESERVER-15709) however there is no planned work at the moment. Should the status of this request change I will update you via this post.

 

 


giosp
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • December 22, 2020

Hi @hollyatsafe​ ,

thanks a lot for your answer. I will introduce a check of the parameters in the workflow. Thanks a lot.

Happy Xmas and new year 🎅


Reply


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