EasyRules tutorials using Groovy beans with a Gradle build script.
Based on Easy Rules and the Java/Maven Tutorials
NB: Use then terminal command 'TERM=dumb' OR '--console=plain' along
with '--quiet' or '-q' to suppress Gradle build output lines.
Prints the following usage to the console
Baseline FizzBuzz using code. (From: http://wiki.c2.com/?FizzBuzzTest)
Prints the integers from 1 to 100. For multiples of 3, print 'Fizz' instead
of the integer and for the multiples of 5, print 'Buzz'. For integers which are
multiples of both 3 and 5, print 'FizzBuzz'.
FizzBuzz implementation using EasyRules.
Very simple EasyRules examples with one, always true, rule.
Obligatory 'Hello, world' example where the input is evaluated by a rule.
Rule to evaluate drinking age (US 21); Name and age can be passed in via the command line
or system properties; Default is 'Tom' at age '17'.
Copied from DROOLS examples. Create some rooms with sprinklers, start some fires.
The sprinklers will turn on and an alarm will be raised to notify the Fire Department.
Put out the fires, the sprinklers will turn off and the alarm will be silenced.
Copied from DROOLS examples. A customer selects and returns various items. A discount
is applied or removed depending on the merchandise total at the end of each transaction.
Transactions are generated randomly.
Initialize with honest politicians and the people rejoice. Introduce big corporations
and corrupt each politician. How the people feel now?
Nice demo of the new 'InferenceRulesEngine'
Remove all reports and artifacts from './$project.buildDir.name'