Questions tagged [rules-engine]
32 questions
22
votes
4 answers
The relation between Business Rules Engines and Constraint Programming languages
If one looks at (perhaps older) manuals of Drools or some other rule engines,
one of the illustrations of their added value is solving puzzles such
as the Miss Manners puzzle (listed in the Drools Documentation). Now, such puzzles are naturally…

John Donn
- 424
- 4
- 12
19
votes
4 answers
Generic rule parser for RPG board game rules - how to do it?
I want to build a generic rule parser for pen and paper style RPG systems. A rule can involve usually 1 to N entities 1 to N roles of a dice and calculating values based on multiple attributes of an entity.
For example:
Player has STR 18, his…

floriank
- 471
- 2
- 16
18
votes
3 answers
Why Aren't Rule Engines Written In Prolog?
From what I've seen of Prolog, it seems as if it would be ideal for crafting a rule engine for an app. Yet, I don't believe I've ever seen a rule engine written in Prolog. Is there some inherent limitation in Prolog (e. g. poor garbage collection…

Onorio Catenacci
- 2,937
- 3
- 26
- 37
11
votes
4 answers
How does the use of a rules engine impact the design, implementation, and performance of an application?
I'm interested in the ability of rules engines to:
launch and iterate over business driven logic
have "business users" perform the actual modification of those rules rather than developers
comprehend the business rules in general
Also, does using…

enonu
- 113
- 1
- 6
6
votes
4 answers
Representing a rule in a ruleset
How to represent rules for a rule engine as objects?
A rule would be
if (booleanExpression(input)) then a chain of generic actions" else next rule
...where the generic actions might be e.g. passing the input to a different chain of rules,…

SF.
- 5,078
- 2
- 24
- 36
5
votes
1 answer
A better design for a rules engine implementation
I've implemented a rule engine like this:
public interface IRuleEngine
{
List Validate(param1, param2, param3);
}
public class DefaultRuleEngine : IRuleEngine
{
readonly IList _rules;
public…

ygetarts
- 221
- 1
- 3
- 7
5
votes
1 answer
Rule engine in .NET
I have to import data from Excel to an SQL database. The Excel data contains various parameters and their values, like P1, P1, P4, P5, etc. I have to apply business rules. Like if (P1 > 100 and P1 < 200) then insert the record in database.…

user641812
- 159
- 1
- 1
- 2
4
votes
3 answers
Complex Mutual Exclusion Validation Logic
I need to validate some form inputs in complex way. E.g.
For example, if user selects A…

blindcodifier9734
- 141
- 4
4
votes
2 answers
Web services and business rules engines
We have a web service that takes in input different types of messages. The function of the webservice is to merely write in a database the content of the messages. There is about one table (with foreign keys to others) for every kind of message.
We…

Vitaly Olegovitch
- 1,368
- 12
- 18
3
votes
2 answers
What is the best algorithm for implementing a system with a complex execution path?
I am currently working on an implementation that based on a set of user configurations should output a final decision. The multiple configurations are evaluated several times at different stages of the execution.
Example: Let's say I'm building a…

MC.
- 141
- 3
3
votes
2 answers
Using Prolog to implement authorization rules
I'm working on a user management "pseudoframework" in PHP, and I'm trying to implement fine-grained rule-based authorization. I'm using a combination of SQL and condition-checking functions written in PHP right now, but I'm not completely…

alexw
- 329
- 1
- 10
2
votes
1 answer
Evaluate and run Dynamic Rules
I have to build a dynamic rules engine in say, Java, where a user can define a certain list of filters and trigger a certain event based on them. The rules will be a long chain of conditions, such as:
if
condition1 AND (condition2 OR…

int-main
- 29
- 2
2
votes
1 answer
Appropriate design / technologies to handle dynamic string formatting?
recently I was tasked with implementing a way of adding support for versioning of hardware packet specifications to one of our libraries. First a bit of information about the project.
We have a hardware library which has classes for each of the…

Mark W
- 129
- 2
1
vote
2 answers
How to implement a rule-based decision maker for an agent-based model?
I have a hard time understanding how to combine a rule-based decision making approach for an agent in an agent-based model I try to develop.
The interface of the agent is a very simple one.
public interface IAgent
{
public string ID { get; }
…

Vector Zita
- 2,372
- 8
- 19
1
vote
2 answers
Trying to figure out the optimal selection based on a set of rules
Background: We have software that displays different products to the user
Problem: With a given set of rules, determine which is the primary product we should show the user. These are images. We are writing this in Python, but I don't think that…

Envin
- 145
- 1
- 8