Hi Oggu
When you have a property pp in your Scala,
the Scala compiler generates a method pp(), not getPp() as Drools and many Java tools expect (the JavaBeans specification).
Try this to see what happens;
echo 'case class C1 ( pp1: Int, var pp2:String )' > case_class.scala
scalac case_class.scala
javap C1.class | grep pp
public int pp1();
public java.lang.String pp2();
public void pp2_$eq(java.lang.String);
Instead in Scala you can do:
import scala.reflect.{BeanProperty, BooleanBeanProperty}
class C1 {
@BeanProperty val pp1: Int = 0;
@BeanProperty var pp2:String = ""
}