Minimal Spring Boot sample app.
Drools decision table implementation in spring boot
For building and running the application you need:
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main
method in the com.drools.example.SpringDroolsApplication
class from your IDE.
Alternatively you can use the Spring Boot Maven plugin like so:
mvn spring-boot:run
URL: http://localhost:9091/order Method: POST Request body:
{
"name":"Mobile",
"cardType":"HDFC",
"price":15000
}
Response body:
{
"name": "Mobile",
"cardType": "HDFC",
"discount": 10,
"price": 15000
}