We were using Drools 2.5 version earlier. Now we have switched to drools
4.0.7. But we see significant issues with performance like drools 4.0.7
is three times slower than 2.5 . Has anybody encountered the issue?
Here is a sample of the rule, we have some more similar to this.
rule "test"
dialect "java"
activation-group "group1"
when
$croNumberDetailsRequest : CRONumberDetailsRequest()
$resdirectPhoneNumber : ResdirectPhoneNumber()
eval($resdirectPhoneNumber.getType().getId() == 5 &&
$resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand(
)) &&
$croNumberDetailsRequest.getRegion() != null &&
$resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion()
) &&
$croNumberDetailsRequest.getLocale() != null &&
$resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc
ale()) &&
$resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot()));
then
ResultList.add($resdirectPhoneNumber);
end