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 = ""
}


2014-01-25 swaroop <swaroop.oggu@gmail.com>
Hi ,

Does Guvnor or RuleWorkbench support the scala object model(Exported as jar)
? When i tried with simple scala case classes, I was able to upload the
model(After adding the scala lib to Guvnor Lib directory) but was not able
to see the classes when iam composing a rule . Any pointers would be helpful

Regards
Oggu



--
View this message in context: http://drools.46999.n3.nabble.com/Scala-Drools-Guvnor-tp4027855.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui