I am trying to execute a set of 5 rules listed below-
Let's say there are two entities- Entity1 and Entity 2. Entity1 contains 3 date type variables - Date1, Date2, Date3 Entity2 contains a date type variables - Date4
- Rule 1 - If Date1 > Date2, then throw an Error Message
- Rule 2 - If Date2 > Date3, then throw an Error Message
- Rule 3 - If Date3 < Date4, then throw an Error Message
- Rule 4 - If Date1 > Today's Date, then throw an Error Message
- Rule 4 - If Date3 < Today's Date, then throw an Error Message
After a while, I noticed that the logs are growing and the system goes out of memory.
Digging in a bit more I enabled TRACE on org.drools package and found that the rules are going in a loop and not getting stopped.
I am using Drools Workbench 7.2.0 Final
Please suggest how to proceed with this.
Edit - Added snip of the DRL file DRL