I am using Rules rules = new Rules() to create new Rules and for registering, I am using: rules.register(new CustomRule(arg1))
My rules that I have created are all extending BasicRule because I had to pass arguments and use them in the rules. I have 4 rules which are being registered in this way.
But the problem is, while firing the rules with the help of RulesEngine, only the 1st registered rule is being executed. I am not able to fire all these rules.
And also, while debugging I saw that only the 1st rule out of the 4 registered rules, is being registered. But, I want to fire all the rules, which is not happening.
Please can anyone help, if they have faced a similar problem in the easy-rules library? I am using the POJO method for building the custom rules.
I am using
Rules rules = new Rules()
to create new Rules and for registering, I am using:rules.register(new CustomRule(arg1))
My rules that I have created are all extending
BasicRule
because I had to pass arguments and use them in the rules. I have 4 rules which are being registered in this way.But the problem is, while firing the rules with the help of
RulesEngine
, only the 1st registered rule is being executed. I am not able to fire all these rules.And also, while debugging I saw that only the 1st rule out of the 4 registered rules, is being registered. But, I want to fire all the rules, which is not happening.
Please can anyone help, if they have faced a similar problem in the easy-rules library? I am using the POJO method for building the custom rules.