Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Minimalist scala drools project
Scala Shell
branch: master

typo

latest commit 4d8efff726
@dacr authored
Failed to load latest commit information.
project deps update
src enhancements
.gitignore drools 6.1 update + example various enhancements
README.md typo
build.sbt drools 6.1 update + example various enhancements
cleanup.sh first commit

README.md

Drools & Scala usage example

$ sbt test

Some advices :

  • 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.
  • To change the java compiler used by drools, use the following system property : "drools.dialect.java.compiler=JANINO". It will replace ECJ by Apache Janino, but you will have to provide the dependency yourself : "org.codehaus.janino" % "janino" % "2.5.16" (Use only this release, at least up to Drools 6.1)
Something went wrong with that request. Please try again.