DMN
A light-weight DMN (Decision Model and Notation) business rule ruby gem.
This gem depends on the FEEL gem to evaluate DMN decision tables and expressions.
Usage
To evaluate a DMN decision table:
variables = {
violation: {
type: "speed",
actual_speed: 100,
speed_limit: 65,
}
}
result = DMN.decide('fine_decision', definitions_xml: fixture_source("fine.dmn"), variables:)
# => { "amount" => 1000, "points" => 7 })
Supported Features
- [x] Parse DMN XML documents
- [x] Evaluate DMN Decision Tables
- [x] Evaluate dependent DMN Decision Tables
- [x] Evaluate Expression Decisions
Installation
Execute:
$ bundle add "dmn"
Or install it directly:
$ gem install dmn
Setup
$ git clone ...
$ bin/setup
$ cd dmn
$ bin/rake
$ bin/guard
License
The gem is available as open source under the terms of the MIT License.
Developed by Connected Bits