https://github.com/eitansuez/drools-example
Basic "hello drools" example in a Spring Boot app
https://github.com/eitansuez/drools-example
Last synced: about 1 month ago
JSON representation
Basic "hello drools" example in a Spring Boot app
- Host: GitHub
- URL: https://github.com/eitansuez/drools-example
- Owner: eitansuez
- Created: 2018-03-14T14:25:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T16:16:11.000Z (over 8 years ago)
- Last Synced: 2025-02-26T01:27:12.908Z (over 1 year ago)
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= README
This project is a basic "hello world" type example of using the drools rules engine in a boot application.
[source,bash]
----
$ ./mvnw spring-boot:run
----
Basically a simple application that loads rules files (.drl) from the classpath, and runs a simple evaluation of a rule against a couple of objects of type `Applicant`. The rule sets the `valid` property to `true` if the age is less than 18.
The app simply prints to the console the state of these objects both before and after the rule is applied.