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
3
votes
1 answer

How to handle dynamic Json/class in Drools?

I'm writing a RESTful service to calculate some values according some rules. For example: There is a JSON like this: { "amount": 100, "destination":"A" } This data is a request body, post to my controller: @RequestMapping(value = "/orders",…
epicGeek
  • 72
  • 2
  • 10
3
votes
0 answers

how to update rules dynamically in drools rule engine

i am working on drools rule engine got this scenario to change the values in when block from 1000 to 2000 ,changing the signs from > to <, can we achieve this using a form to edit the value rule "payment" when account:Paymentinfo(transaction…
rockonetwo
  • 31
  • 1
  • 2
3
votes
5 answers

How to start working with a large decision table

Today I've been presented with a fun challenge and I want your input on how you would deal with this situation. So the problem is the following (I've converted it to demo data as the real problem wouldn't make much sense without knowing the company…
Peter
  • 14,221
  • 15
  • 70
  • 110
3
votes
2 answers

Declare local rule variable using Drools

It's possible to create a local variable into a local rule definition using Drools rule engine? I wrote an example code, but it's not compiling. This example is just to expose the idea about local declaration (I know that it's wrong) /*...*/ …
Andre Pastore
  • 2,841
  • 4
  • 33
  • 44
3
votes
2 answers

How to write own java function in Visual rules BRM?

We are using Visual rules BRM powered by actico to manage Business rules.There are many builtin function provided by visual rules library. Now I want to add a custom function to my project. How can I do this. I'm new in this. Thanks In advance. I'm…
Log Raj Bhatt
  • 167
  • 2
  • 10
3
votes
1 answer

Codeeffects Linq Error: E106 The given ruleset does not contain any rules with type System.Xml.Linq.XElement

When I try to the following LINQ Filter var productsInfo = from product in productsElement.Descendants("product").Filter(rule) from photo in product.Descendants("photo") from parameter in…
3
votes
2 answers

Why can't we write Business Rules in Java files instead of .drl files?

I just got introduced to Business Rules, .drl files, Rule Engines and Drools.While exploring I realized that all those conditions and fact checking can be done in Java programs as well then why do we need to write .drl files and have a Rule Engine…
Alok Mishra
  • 926
  • 13
  • 39
3
votes
1 answer

Best means of defining constants or named values

What is the best way to define constants or named values in InRule? e.g. I don't want a bunch of magic numbers (that can be easily duplicated). For example "minimum age". I would like to define a named constant that I can use like MinimumAge in…
Peter Ritchie
  • 35,463
  • 9
  • 80
  • 98
3
votes
1 answer

Dynamic business rules engine for ruby on rails

I have an application which will require a "dynamic business rules" engine. Some of the business rules changes very frequently. Some of then applies for a limited set of business accounts. For example: my customer have a process where they qualify…
razenha
  • 7,660
  • 6
  • 37
  • 53
3
votes
1 answer

Sitecore - Dynamic actions on the Rules engine field type

We have a rules field type on a template and we want set to the action of the the rules engine to change the data source to one of the children of the item that the rules field is on. I have tried to create a custom macro but cannot get an id to…
James
  • 117
  • 8
3
votes
2 answers

Implementing user-defined business rules with DDD

Let's say If I have an application which let's user create business rules to be applied on a domain entity. A rule can be a combination of a condition and multiple actions where if condition evaluates to true then corresponding actions are executed.…
3
votes
2 answers

Is Oracle Rules Manager and Expression Filter based on an existing standard?

If not, are there standards in existence for rules engine storage? or Is there a C# implementation of the Oracle Rules Engine syntax?
Stephanie Page
  • 3,875
  • 1
  • 18
  • 22
3
votes
1 answer

Activiti and Drools ... is one enough?

I have been asked to start exploring a Activiti tool for some client demo. The demo will also have JBoss Drools with which Activiti will be integrated. I am new to both of these tools and business process world, so excuse me if the question is…
hanumant
  • 1,091
  • 4
  • 15
  • 27
3
votes
1 answer

Sitecore insert options rules

I have a scenario where I would like to add insert options based on roles. So imagine I have a folder in the content tree called 'Components'. I have two roles called - Contributors - Approvers I have 3 templates which I want to pick and choose…
Gabbar
  • 4,006
  • 7
  • 41
  • 78
3
votes
1 answer

How to fire Rules in Drools when having a function(monitor) that contains an infinite loop?

I have a function(MonitorLog) that contains an infinite loop; it's necessary because I want to monitor a file and do an action when there is a modification. However, then part in Drools doesn't want to start("WS is updated" don't appear). Some help…
Ahmed
  • 41
  • 4