This demo focus on 3 key points
- Dynamically loading Drools Rule file from DB in KSession
- Dynamically creating model which are defined in Drools File using Declare
- Get the runtime model defined in DRL and map the Incoming JSON structure to the Model
- Start spring-boot application
- mvn spring-boot:run
- Start angular application
- ng serve
Open http://localhost:4200/ in browser, enter the required data and discount getting changed based on TYPE selection.
Thanks Ketan
Enjoy!