A dynamic business rule engine for rubies on rails

I have an application that will require a dynamic business rule engine. Some of the business rules change very often. Some of them are used for a limited set of business accounts. For example: my customer has a process in which they match stores based on their size, number of sellers, number of products, location, etc. But it manages a different account, and each account provides different “weights” for each attribute.

How to implement this engine using Ruby? I know that Java has drooling, but I find that drooling is annoying and complicated. And I prefer not to use JRuby ...

Hi,

Rubem

+3
source share
1 answer

If you are sure that the rule engine is what you need, you need to find one that you can use in Ruby. A quick Google search resulted in Rools (http://rools.rubyforge.org/) and Ruby Rules (http://xircles.codehaus.org/projects/ruby-rules). However, I am not sure about the status of any project. Using JRuby with Drools may be your best bet, but then again, I'm a Java developer and a big pro with Drools. :)

, , . , , . , , : " 50 , , , ". hardcoding.

Weight , . , , : " , " ", , , " ". , , , .

+6

Source: https://habr.com/ru/post/1773191/


All Articles