Is there any way to call java functions in the rule? One option is eval but eval is quite expensive. Hence trying to see if there is any other option?

when

Eval($resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand()))

Then

ResultList.add($resdirectPhoneNumber);

 

Thanks