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

How to check null date condition in drools?

I have to check a condition on date whether a date field of a entity is in range of another two sets of date from other entity First Entity : 1. id 2. name 3. date Second Entity ; 1. id . . . . 17 : Start Date 18 : End Date I have to check whether…
Shashi
  • 12,487
  • 17
  • 65
  • 111
0
votes
1 answer

OpenRules rules only in a database possible?

I am experimenting with OpenRules and Java and I'd like to store all my rules in a database only. If I understand the documentation correctly, I need to have one "Main.xls" in which to store the environment settings. Now the question: Is there a way…
Dominik Sandjaja
  • 6,326
  • 6
  • 52
  • 77
0
votes
1 answer

Drools camel multiple ksession not firing

I am using drools 5.6. In camel-server.xml I have my route defined as:
Bryan
  • 1
  • 1
0
votes
2 answers

Esper last inserted Event

Is there a way to get the last inserted event in esper core prior to rule completion? Configuration cepConfig = new Configuration(); cepConfig.getEngineDefaults().getMetricsReporting(). …
abhi
  • 4,762
  • 4
  • 29
  • 49
0
votes
1 answer

MicroRuleEngine value from another object

Been looking a bit at the MicroRuleEngine found here: https://github.com/runxc1/MicroRuleEngine In the one of the unittests, the following code exists: [TestMethod] public void ChildPropertyBooleanMethods() { Order order =…
smolesen
  • 1,153
  • 3
  • 11
  • 29
0
votes
1 answer

Drools: Why does this rule fire incorrectly?

My drl is: rule "Active Orders" dialect "mvel" //no-loop when m: Order( status == Order.ENABLED, id : id ) then System.out.println( "Order Id is: " + id ); modify ( m ) { status =…
Jasper
  • 8,440
  • 31
  • 92
  • 133
0
votes
1 answer

NxBRE Rule engine - trigger on Object changes

I need to do a research on a rule engine for my .NET application and I came across NxBRE. I have different types of objects in my application, and I want to use NxBRE when objects fields and states are changing. For example: If A.a has changed to x…
ckita
  • 33
  • 2
  • 7
0
votes
1 answer

jboss drools - comparing derived strings

Working Rule: rule "it is morning before lunch" ruleflow-group "define_period" when $process: WorkflowProcessInstance() Hour(value >=6 && < 12) from $process.getVariable("hourOfDay") then System.out.println("Its…
MickJ
  • 2,127
  • 3
  • 20
  • 34
0
votes
1 answer

Can the Windows Workflow Rules Engine handle branching?

I'm trying to write a C# application that takes in hundreds of thousands of independent rows of data and, based on certain rules defined by a user, sets a certain property. As such I've thought of using a rules engine. After some googling, I decided…
0
votes
1 answer

Jena rule not firing when expected

I've started to use Jena and tested its rules-based reasoners, but I'm not seeing the results that I expect. I listed all of individual statement and these are from my OWL…
neenutna
  • 35
  • 2
  • 9
0
votes
1 answer

Best practices to write reusable rules

I am specifically working on Drools. But, generally, I would like to know what are the best practices to write rules thar are "reusable" with any rules engine.
Anu
  • 57
  • 1
  • 2
  • 7
0
votes
2 answers

Can we use the WF rules engine in a web application?

Trying to understand how to use WF rule engine outside of a WWF application. I've only read a blog post on the topic. But I have certain doubts on the feasibility. My application requirements are as follows: Web-based UI for writing the rules, and…
deostroll
  • 11,661
  • 21
  • 90
  • 161
0
votes
1 answer

Run drools rule without "then" block

For my case it enough to see if a rule is executed or not. Then I use the WorkingMemoryConsoleLogger to see which rule was activated. I don't need to have a thenblock in the rules. However, when I remove that block it returns an error. How can I fix…
aphex
  • 3,372
  • 2
  • 28
  • 56
0
votes
1 answer

Does Windows Workflow Foundation comprises an Inference based rule engine, like a flow based rule engine?

I need to develop a web app that infers new rules from a given rule base. Example: A developer advised to modify a source code might reflect changes on other files, so he has to subsequently modify the affecting files also. So my engine should be…
0
votes
4 answers

Doubts on Activiti Based Alfresco workflow

I am new to Alfresco. Am working for a project which uses Alfresco as the document repository. There is a requirement to create some approval workflow for the documents. We are still in doubt on using the Activiti in Alfresco for implementation …
Abhishek
  • 11
  • 1