dacr / scala-drools-dummy-project

Minimalist scala drools project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drools & Scala usage example

$ sbt test
$ sbt run
$ sbt universal:packageBin
# -- packaged artifact is placed in target/universal directory

Some advices :

  • don't use fat jar with drools, switch to sbt-native-packager
  • Scala case classes are perfect for your rules
  • Use only java collections within the classes used by your rules. Avoid the scala collections in that precise case but rely on collection.JavaConversions._ implicits to hide that restriction.
  • In knowledge bases only use declarative classes (declare) for internal usage, such as intermediary reasoning state.

About

Minimalist scala drools project


Languages

Language:Scala 100.0%