Kotlin-Native API
Idiomatic Kotlin with extension functions, null-safety, and type inference throughout.
GoRules Version 2 is here - redesigned, now with managed cloud.GoRules Version 2 is here!
Watch the launch videoWatchOpen source Kotlin rules engine with coroutine support. Idiomatic API for business rule evaluation on JVM and Android.
Install the SDK, load a decision graph, evaluate - the same JSON your team edits in the visual editor runs in your process.
// build.gradle.kts
dependencies {
implementation("io.gorules:zen-engine:0.29.2")
}import io.gorules.zen.ZenEngine
import java.nio.file.Path
val engine = ZenEngine()
val content = Path.of("./decision.json").toFile().readText()
val decision = engine.createDecision(content)val input = mapOf(
"customer" to mapOf("tier" to "premium", "country" to "US"),
"cart" to mapOf("total" to 150, "items" to 3)
)
val result = decision.evaluate(input)
println(result.result)
// {discount=15, freeShipping=true}Built for performance and developer experience - native speed with an API that feels at home in your codebase.
Idiomatic Kotlin with extension functions, null-safety, and type inference throughout.
Suspend functions for non-blocking rule evaluation. Perfect for Ktor and other async frameworks.
Full Android support for embedding business rules directly in mobile applications.
GoRules provides first-class Kotlin support for business rules management. Built on our Java SDK with Kotlin-specific extensions, it delivers an idiomatic development experience with coroutine support and type-safe builders.
The Kotlin SDK embraces modern JVM development practices with suspend functions, extension methods, and null-safety throughout. Whether you're building with Ktor, Spring Boot, or Android applications, GoRules integrates naturally with your Kotlin codebase.
Leverage Kotlin's expressive syntax alongside GoRules' powerful rule engine. The SDK supports all GoRules features including decision tables, expressions, and complex rule graphs, all accessible through a clean, Kotlin-native API.
See the public Zen Engine benchmarksThe engine is open source and free forever - add the GoRules BRMS when your team needs versioning, approvals, and an audit trail.