3
 Followers
12
 Likes

Refactor multiple parameters into a structure

Service Studio
On our radar

It would be nice if I could select multiple parameters on a screen, client, service or server action and convert them into a structure.

Created on 6 Sep 2019
Comments (6)

Outstanding idea!

J.Ja

Changed the category to Service Studio


+1!

Very practical! I like this idea Daniël!

+1

You can already copy-paste parameters from an Action to a structure, but still this would automate:

  - Creating an empty structure to be used as input for the Action;

  - Removing current parameters and adding the Structure as input;

  - Refactoring any code that was calling the Action already.


IMO, the real value-add would be a Service Studio warning for Actions with too many parameters. Clicking the warning should allow the developer to select which parameters should be moved to a structure, and follow the above steps.


Selecting which parameters will be moved is important though, since Structure input parameters don't have an easy way to validate Mandatory attributes.

Changed the status to
On our radar


Thanks for the idea!

views
176
Followers
3