The simple, stupid Java™ rules engine

Important note

Easy Rules documentation has been moved to GitHub here. This website will be shutdown by the end of July 2017.

Then, fire it!

public class Test {
    public static void main(String[] args) {
        // create a rules engine
        RulesEngine rulesEngine =
        //register the rule
        rulesEngine.registerRule(new MyRule());
        //fire rules

First, define your rule..

@Rule (name = "my awesome rule" )
public class MyRule {
    public boolean when() {
        return true;
    public void then() {
        System.out.println("Easy Rules rocks!");

Latest news

18/05/2017: Version 2.5 is out with new features and bug fixes. See all details here.

08/02/2017: Version 2.4 is out with small enhancements and bug fixes. See all details here.

24/08/2016: Version 2.3 has been released with new features and bug fixes. See change log here.

07/12/2015: Version 2.2 is here with meta-annotation support! See all changes in detail here.


Easy Rules is open source, hosted on GitHub and is released under the terms of the MIT License.


Many thanks to YourKit, LLC for providing a free license of YourKit Java Profiler to kindly support the development of Easy Rules.

Many thanks to Travis CI for providing a free continuous integration service for open source projects.