Reputation: 516
The credibility rating engine is captured and maintained in Excel spreadsheet. It accepts following parameters: age, income, liabilities, occupation, education etc. and it returns some score (some number).
The goal is to "execute" this Excel file from back-end (Java).
Is there a tool/framework that can cover one these needs:
There are plenty of frameworks to manage Excel files: write and read. But there is nothing that would allow to use Excel spreadsheet as a calculation engine in back-end,
Upvotes: 3
Views: 2530
Reputation: 1
It actually shouldn't be too difficult, especially since the layout and data are pretty simple. This will take further research on your part, yet this should serve as a starting point.
Check this out: - Create an Excel file
In "worksheets/sheet1.xml", you'll see the following path => "worksheet/sheetData/row[0]/c" with the attributes "r" & "t"
.
Explore all the XML files in there and play around.
You can possibly parse, modify the XML, and save it then change the filetype back to the ".XLSX" or whatever.
Enjoy.
Upvotes: 0
Reputation: 2556
Ignoring whether the overall concept is a good idea or not, one option would be to use Excel RTD to have the spreadsheets push string formatted data to your back end.
https://support.microsoft.com/en-us/help/289150/how-to-set-up-and-use-the-rtd-function-in-excel
Upvotes: 1
Reputation: 417
Have you considered moving all of your calculations to Java, and then exposing them back to Excel -- ie have a function in Excel that calls the same Java code to do the calculation?
You can write Excel functions in Java using Jinx, https://exceljava.com.
Upvotes: 1