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
4
votes
3 answers

One out of two rules not firing

I'm kinda beginner to JAVA and Drools in particular, so don't ask why i'm doing this :D The task was to implement a simple system that will calculate tariffs and prices of 2 items (different colors). I made a simple class with getters and setters…
borgmater
  • 658
  • 3
  • 11
  • 35
4
votes
1 answer

Is this a proper way of defining a rule in NRules?

public class AllowAtleastOneCountryRule : Rule { public override void Define() { Profile profile = null; string str = @"At least one country has to be defined as 'permitted'"; bool enabled =…
talaa123
  • 123
  • 1
  • 2
  • 14
4
votes
2 answers

AngularJS and reusable, enforced field validation rules

I have to design a classic, form based operational web app. Each form contains some controls, mostly input controls. Many of those controls have validation or behavioral rules, some rules are valid only for a single control (jndependent checks) and…
vulkanino
  • 9,074
  • 7
  • 44
  • 71
4
votes
1 answer

How do you profile a Drools application?

How can I find out how often each drools condition/consequence is being executed and how long it's taking? The common JVM profilers are too low-level for this purpose, as the names of the internal drools methods won't tell you what rule they're…
Alex R
  • 11,364
  • 15
  • 100
  • 180
4
votes
1 answer

Method or pattern to implement a Business Rules Engine in a solution?

I am working in a young banking company. Our solution (.NET) has an important technical debt, so we refactor it following DDD principles. We are planning to use (a) Business Rules Engine(s). Business rules deal with accounting purposes, marketing…
Rénald
  • 1,412
  • 12
  • 29
4
votes
0 answers

How does prolog differ in capability from a Java-based rules engine?

I am new to logic programming. What kinds of problems can prolog and other logical programming languages (clojure.logic) solve that rules-based rules-engines written in, say, Java cannot? What kinds of problems is logic programming particularly good…
Ben Weaver
  • 960
  • 1
  • 8
  • 18
4
votes
1 answer

How is parsing phase in a compiler different from a rule engine?

I have a rough understanding of how the compilers work (I mean languages, grammars, lexical analysis, parsing etc). The rule engines have various rules and associated action, just like you have rules in the grammars and you can associate actions…
abhinav
  • 221
  • 1
  • 3
  • 13
4
votes
2 answers

drools rules that requires multiple other rules

I'm new to drools and I've written some rules and they work as expected. However, I can't help but think there is a more concise way of writing these rules. My situation is that many of the rules have a few similar basic requirements that I'm…
Nixx
  • 370
  • 3
  • 20
4
votes
3 answers

Keeping the same logic implemented in C# and JS in sync

There is a need to have a calculator for our invoices which will be used both in the web UI and in the back-end. This requires two implementations of the same logic in Javascript and C# and the real problem is to keep these two logics in sync when…
Mehrad Sadegh
  • 1,104
  • 10
  • 25
4
votes
2 answers

Whats the best way to approach rule validation

So I'm currently working as an intern at a company and have been tasked with creating the middle tier layer of a UI rule editor for a analytical engine. As part of this task I have ensure that all rules created are valid rules. These rules can be…
Steve2056726
  • 457
  • 2
  • 6
  • 20
4
votes
3 answers

DL Reasoner vs Rule Engine: can you explain the difference?

Can someone explain the differences between a DL Reasoner like Pellet/deafult OWL Reasoner and a rule engine like Jess? and their applications ? Thanks.
soontobeared
  • 441
  • 4
  • 9
  • 30
4
votes
2 answers

Filter out sublist in Mathematica

I am a newbie user in mathematica. Here is my problem: For example, I have a nested list: lst = {{1, 0, 0}, {0, 1, 1}, {2, 0, 1}, {1}, {0,3}} I want to only output those sublist whose elements are 0 or 1. The above list's output should be: {{1, 0,…
jscoot
  • 2,019
  • 3
  • 24
  • 27
4
votes
1 answer

Maintaining drl (technical) rules in Drools Guvnor

I'm new to the world of business rules, but I think I've understood the concepts of Drools Expert and Drools Guvnor, yet I'm still a bit confused how/when/why exactly use Guvnor in comparison to Expert. And also, whether they rule each other out or…
kaskelotti
  • 4,709
  • 9
  • 45
  • 72
4
votes
3 answers

Tax Engine Examples

We create point of sale software for the mac, and are looking to revamp our tax engine. It's pretty simple now, with taxes consisting of a name, code and rate that can be applied to every product individually. While this is good enough for some…
Koen Bok
  • 3,234
  • 3
  • 29
  • 42
4
votes
1 answer

Authoring JBoss Drools rules using UI

We're using JBoss Drools to externalise some particularly prone to change business logic in some services we are building. Where these rules can be created and maintained by our developers this is working very well and we have a good level of…
Kieran Benton
  • 8,739
  • 12
  • 53
  • 77