You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we store lots of information regarding the workflow steps in a json file, we parse this json file for validation and other use cases. We also will soon add a new API that fetches the information in this json file. Because this json file is parsed in runtime, we can't use any of the information here during compile time to help our code be more stable.
What solution would you like?
We should store the information in either an Enum or a class. Some of the benefits are:
Type safe with predefined constants
compile time checking, reducing potential runtime errors and overhead for test cases
less processing time spent on parsing json
For example the code could look something like this:
If we make it an enum we should integrate it with the workflow step factory so there's one place for people to add new capability. New enum value, along with the different components.
Is your feature request related to a problem?
Currently we store lots of information regarding the workflow steps in a json file, we parse this json file for validation and other use cases. We also will soon add a new API that fetches the information in this json file. Because this json file is parsed in runtime, we can't use any of the information here during compile time to help our code be more stable.
What solution would you like?
We should store the information in either an Enum or a class. Some of the benefits are:
For example the code could look something like this:
The text was updated successfully, but these errors were encountered: