Questions tagged [rule-engine]

Rule engines are software components that allow application developers to externalize business rules and manage their lifecycle independently from the application code.

Rule engines

Rule engines are software components that allow application developers to externalize business rules and manage their lifecycle independently from the application code. They typically use a higher level declarative language (in contrast to the typical imperative paradigm of languages like Java and C++) and use specific algorithms for scalability and high performance. A good analogy is that Rule Engines do for business rules what databases do for data.

Resources

961 questions
6
votes
2 answers

How to use variables in easy rules?

I am using JSON descriptor to load rules using easy-rules and I want to use variables in easy rules actions. For example I have a set of rules where I define rule id, name, description as given below [ { "id": 1, "name": "Task using Oracle…
Ricky
  • 314
  • 1
  • 7
  • 22
6
votes
0 answers

Drools performance as a rule engine using multiple threads

I'm using a single threaded drools project as a first-match policy/condition evaluation engine. I'm using the following code to get a kieSession from the kieContainer, and evaluate the predicate based on the conditions. KieContainer currentContainer…
Shashank
  • 325
  • 4
  • 12
6
votes
0 answers

Rules Engine: Best fit for an embedded system

I have been doing some research on the rules engines that would be more appropriate run on a embedded system. The system will collect information from sensors and according to that information, make specific C/C++ calls. An example would be: IF…
FCR
  • 1,103
  • 10
  • 25
6
votes
0 answers

How to define Nools in Nodejs?

I am looking to create nools rules in nodejs. I am new to nools rule-engine.I am trying to write a rule but i don't know anything about nools. I have studied whole documentation but it is confusing me. So please can anyone help me how to create…
Raks
  • 131
  • 4
6
votes
2 answers

Passing parameters in drools

How can I pass a parameter to set the comparing value of age(18 should be dynamic) in the below drools rule package com.rule.models import com.rule.models.User rule "AgeCheck" when $user: User( age < 18 ) then System.out.println("Warning,…
ir2pid
  • 5,604
  • 12
  • 63
  • 107
6
votes
10 answers

Rules Engine in C or Python

I am looking for a rules engine in C or Python, but if you know a rules engine that is implemented in another language I would be glad to know about it. The engine will be used as way to automate a house, like turning the light off when somebody…
Yanik
  • 529
  • 2
  • 5
  • 14
6
votes
1 answer

Does OptaPlanner support optimizations and constraints on continuous variables?

I'm reading contradictory things in the documentation. On one hand, this passage seems to indicate that continuous planning variables are possible: A planning value range is the set of possible planning values for a planning variable. This set…
5
votes
4 answers

Alternatives to BizTalk as a rules engine

My customer wants a end-user configurable rules engine. Currently they are considering BizTalk. Are their any other alternatives that they should consider?
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
5
votes
2 answers

"if then else "with rule engines

I'm new to drools and given a condition (Condition) and a boolean variable "a" , I would like to create the following rule with drools : if (Condition) { a = true; } else { a = false; } What is the best way to do it ? For the…
Ricky Bobby
  • 7,490
  • 7
  • 46
  • 63
5
votes
4 answers

No support for Java 7 in Drools ("RuntimeDroolsException: value '1.7' is not a valid language level")

While I'm moving my project to java7, Drools starting throwing RuntimeDroolsException exception during init process. When i dig further, I found that this is happening when it validates java dialect. The problem is: Drools 5.1.1 compares…
Bala
  • 4,427
  • 6
  • 26
  • 29
5
votes
2 answers

Reasoning behind using a rules engines

This is more of a generic question. But I am trying to understand a concept of using a tool and why one would need this tool. I keep going round and round. q)Why do we need rule engines? I have been reading up on Drools and ILOG rule engines and…
JJunior
  • 2,831
  • 16
  • 56
  • 66
5
votes
1 answer

Is there any Comparison between .NET Workflow RuleEngine and others e.g. NxBRE?

In our project, we need a rule engine component, after a short time research i found that that .NET Workflow also has it's rule engine. is there any complete comparison list between .NET Workflow Rule Engine and others, e.g. NxBRE,…
Ethan Wu
  • 428
  • 5
  • 15
5
votes
1 answer

Rule Engine - How to store rules to avoid parsing on edit?

My .NET application evaluates user defined rules at runtime. These rules are entered to system via GUI menus by user. I generate a logical statement that corresponds to it and store it in database. For example: (Name = 'John' AND Surname = 'Smith')…
Ahmet Altun
  • 3,910
  • 9
  • 39
  • 64
5
votes
3 answers

A simple design pattern to develop a small Rule-Engine

I have a requirement which take lots of rules validated against the java value objects and produces results. (we cant use any rule engine apps in our company, lots of formalities and lots of questions to be answered). So, rather than implementing…
5
votes
1 answer

Nools and Drools

I was really happy to see a rules engine in Node and also was looking at Drools in the Java world and while reading the documentation (specifically: http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single/index.html#PHREAK)found…
user1749672
  • 116
  • 1
  • 8