hi, Our application uses Drools 4.0.7 and Hibernate 3.x. We use the BRMS to compile the rules from drl files (using java dialect) into rule packages which are updated into the rule base using the rule agent.
We have seen that MVEL rules are compiled when the rules are fired for the first time. If the fact passed at the first run contains a Hibernate proxy (subclass of the original object) and we later re-use the compiled rule on the fact containing the original object, we get a ClassCastException. However, if we pass the fact containing the original object in the first run, there is no problem for further runs. Why are the rules not compiled when we create the package using the BRMS? How can we enable precompilation so that the type is taken as the original object itself? Thanks, Sobhana -- View this message in context: http://www.nabble.com/Why-are-MVEL-rules-compiled-on-first-access--tp23874950p23874950.html Sent from the drools - user mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
