/drools-demo

Drools Demo. Dynamic Drool file from DB, On the fly model declaration etc

Primary LanguageJava

Drools Demo

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

Prerequisite before you start application

Steps to run

  • 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.

Screen Shot 2019-03-13 at 7 44 07 PM

Screen Shot 2019-03-13 at 7 44 16 PM

Screen Shot 2019-03-13 at 7 45 56 PM

Thanks Ketan

Enjoy!