Build complex rules, serialize them as JSON, and execute them in Scala
API to work with functional effects in Java