Knotx / knotx

Knot.x is a highly-efficient and scalable integration framework designed to build backend APIs
https://knotx.io
Apache License 2.0
126 stars 26 forks source link

Validation of tasks transitions graph #505

Open mateuszgrab-cognifide opened 4 years ago

mateuszgrab-cognifide commented 4 years ago

Is your feature request related to a problem? Please describe. Currently definition of the tasks transitions graph is a time consuming process that is error prone. If developer makes a typo, he / she has no real indicator that he made an error.

Describe the solution you'd like It would be good to validate transitions graph either during build time on Knot.X startup, to ensure, that all the edges of the graph exist.

Describe alternatives you've considered N/A

Additional context Currently if developer makes a typo while creating a configuration for tasks, he / she has no indicator about incorrect configuration until given transition is executed. The goal of this task would be to create a mechanism that would validate if all the edges of the transitions graph do exist. For example, currently if there is a transition to non-existing action, there is a runtime issue logged in Knot.X logs:

i.k.f.handler.action.ActionProvider - Could not create initialize proxy [ACTION-NAME] with missing config.