An open API service indexing awesome lists of open source software.

https://github.com/meta-magic/drools-demo

Drools Demo. Dynamic Drool file from DB, On the fly model declaration etc
https://github.com/meta-magic/drools-demo

amexio angular6 drools drools-example drools-rule-engine drools-springboot jdo rule-engine

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Drools Demo

This demo focus on 3 key points
- Dynamically loading Drools [Rule file](https://github.com/meta-magic/drools-demo/blob/master/DB/droolsrule.txt) from DB in KSession
- Dynamically creating model which are defined in Drools File using [Declare](https://access.redhat.com/documentation/en-us/red_hat_jboss_bpm_suite/6.2/html/development_guide/sect-type_declaration)
- Get the runtime model defined in DRL and map the Incoming JSON structure to the Model

## Prerequisite before you start application
- Run [create](https://github.com/meta-magic/drools-demo/blob/master/DB/create-script.sql) and [load data](https://github.com/meta-magic/drools-demo/blob/master/DB/data.csv) before your proceed.

## 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!