Recently I am leaning drools,I think it is a great software.Drools‘s core idea is drl file.We should write the rule file,For example:
rule "name"
when
then
end
And the when section depend on the entity's property.For example:Now I have a User class which is ready to use in my rule.
public class User {
private int money;
private Date time;
//getter and setter.....
}
Now I need to know a user's money between 2012-09-11 and 2013-01-01,and if his money>100 then do my logic,How drools do?