Not sure if this is new, but have been in my head in a long time now.
In some good IDE's there is an option that allows developers to better write code by not allowing it to be very big, at least at screen level actions.
This feature should allow you to:
- select a sub-set from our logic flow,
- create a new Server action with the selected flow inside;
- All the unreachable variables inside that action, should becamean Input variable;
- All the needed variables (in the original flow) should becomethe Output variables from the new screen action and the variables replaced bythose Output vars from the action;
That will provide us with a much faster refactoring with noErrors, allowing every developer to properly follow the best practices andsimplify the logic inside the actions and screen actions.
This is the idea:
https://refactoring.com/catalog/extractMethod.html
Merged from '"Extract flow to Action" operation that allows faster encapsulation of logic' (idea created on 2017-02-23 10:59:09 by José Queirós), on 2017-02-25 10:35:40 by Goncalo Borrega