Matteo and Rhett,
Really good replies - and to be honest both of you are coming from an angle that I hadn't though of (Enhancing the Excel as Rule Editor Experience). Looking back at the title of my post, I can see why it can be read that way.
Maybe a better title is "Excel Add in, embedding DMN Modeller on side pane, allows calling Kie / Drools passing in Excel data as model to execute rules". So no enhancement to the rule editor experience, the focus is on translating Excel data to JSON and passing that to the KIE service.
Maybe a quick explanation of the use case would help: .
* My previous book l tried and failed to write for Excel Power users (as people who are often business analysts/ potential business rule authors). The biggest complaint being that users still needed to install and understand Java, it had about 25 pages of quite technical install instructions. Book link -
https://www.amazon.com/JBoss-Drools-Business-Rules-Browne/dp/1847196063* 10+ years on , with the huge investment of time in the KIE tooling, and the availability of the Docker container and KIE sandbox, it's worth trying to write the book again for Excel power users. Not every reader will have an IT department to support them (as they explore a new area) so the onboarding to a new (and complex) tool needs to be as gentle as possible.
* A good first step is keeping the data in Excel, and calling the rules engine passing in the Excel data. The Add in can translate Excel data to JSON , call KIE / Drools to excute a the DMN model, and then use the json results to update the Excel sheet.
* It may feel to the user that the the Rule Engine is just a more powerful Excel formula. But it does opens up rule engines to a much wider audience.
There are other options - this can be done already using Visual Basic for Applications (VBA), Office Javascript (both embedded in Excel), or an external Python or Excel script. But the Excel Add-on approach makes the experience a lot more polished for users.
So your responses validate that I'm not (completely) crazy in my thinking. I'll continue to explore, and more thoughts / suggestions are always welcome!
Thanks
Paul