I am trying to compare two dates in DRL file using compareTo().However, I am facing an issue when I use new Date() as the argument to the compareTo() method.
eg:
loanDatePaid.compareTo(date2)==0
is working but
loanDatePaid.compareTo(new Date())==0
is giving
Exception in thread "main" java.lang.RuntimeException: Cannot find KieModule: org.default:artifact:1.0.0-SNAPSHOT
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:186)
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:172)
Can anyone suggest why it is so?
PS: The exception posted above is standard one which is coming for all errors in drl execution at runtime. https://groups.google.com/forum/#!topic/drools-usage/LHRKHkO35RI