mercredi 24 février 2021

Is there a way to apply conditions in yaml file and run in scala by reading from yaml?

I am trying to figure out if there is a way to use yaml file for conditional statements like if else. What I want to achieve is to put my conditions in yaml file and use the file in the scala program. When the function is run, it will read the yaml file which inturn will have the conditions to perform. This is to be done in order to cater any changes in the conditions in the future. So in future, if any change in condition happen, it can be catered from yaml and keeping all other code un touched.

Is there any possible way!

Aucun commentaire:

Enregistrer un commentaire