Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing Rule Engine in Rails Application

I want to implement Rule Engine on my Rails 3.2 application which has a complex pricing logic,I want to transform the conditions in pricing logic to rules, and use them.I am creating an entirely new application for this purpose.

I googled alot in this regard and found rules_engine, ruleby, treetop, but the documentation they provided was not just sufficient, I struggled a lot in deciding the best one suitable for my requirement.

What's the best approach to start development on rule engine?

like image 238
vishB Avatar asked Mar 20 '13 13:03

vishB


People also ask

What is Rule Engine jBPM?

JBoss jBPM uses expressions and delegates in its Decision nodes which control the transitions in a Workflow. At each node it evaluates ther is a rule set that dictates the transition to undertake, and so this is also a Rule Engine.


1 Answers

I've been looking for a prolog-like system to implement rules myself. Here's what I found so far.

This library contains a rule engine written in Ruby. It's based on the Rete algorithm and uses a DSL to express rules in a readable way.

https://github.com/ulfurinn/wongi-engine

like image 199
nurettin Avatar answered Sep 18 '22 10:09

nurettin