Nebo15 / gandalf.web

Open-Source Decision Engine and Scoring Table for Big-Data.
https://gndf.io/
GNU General Public License v3.0
45 stars 25 forks source link

Feasibility of mathematical and logical operators among the parameters #167

Open kumarsujendra opened 6 years ago

kumarsujendra commented 6 years ago

@AndrewDryga and @alexeybondarenko , I have installed Gandalf API and Web on my local server and it's working fine as expected. Now I have requirement to use mathematical and logical operators.

Can we use mathematical and logical operators among the parameters captured in different columns. ? Example on run time our application would calculate amount financed and we know Market value of the property. So we want mathematical operator to calculated Loan to value ration and make sure it is less than 80% The formula would be (Amount financed/Market value) * 100 <= 80 such kind of rules.... Your help would be highly appreciated.

AndrewDryga commented 6 years ago

@kumarsujendra Right now there is no feature like that, so it would require a contribution from you. I think it can be added by storing the formula in decision field for each row and adding some simple mathematical evaluator to the decision process.

Additionally, we would need to make sure that formula would receive all required variables (table should devine attributed/column for each variable which is used in the formula) when table is created or updated, otherwise you would see runtime errors and it would be a paid to debug them.

kumarsujendra commented 6 years ago

@AndrewDryga , Appreciate your prompt reply and the direction you have shown. We will check and share the updates with you.