Questions tagged [business-rules]

A business rule is a statement that describes a business policy or procedure. Business logic describes the sequence of operations that is associated with data in a database to carry out the rule.

A business rules engine works by separating execution code for business rules from the rest of the business process management system. This allows the end user to change business rules without having to ask a programmer for help. When a change is made, the engine will evaluate the change's effect on other rules in the system and flag the user if there is a conflict. Business Rules Model

497 questions
0
votes
1 answer

Drools rules - multiple issues (halt execution, condition to stop execution) not working

I am using Drools 6.1.0.FINAL and a stateless session to fire all the rules. I have below 2 simple rules in my .drl file. rule "Null Check" when $paymentHolder : PaymentHolder(pmtRequest.requestDetails == null ||…
Shantanoo K
  • 765
  • 5
  • 15
  • 43
0
votes
1 answer

Custom rules definition using drools

Can I use Drools for a definition like below > pay_type in(NB,CC) and (brand in (VISA,MASTER) or bank in(HDFC,CITI)) operations - and , or keyword - in tags - pay_type , brand , bank I need to provide a java api with 3…
Ysak
  • 2,601
  • 6
  • 29
  • 53
0
votes
0 answers

Jboss Drools - Create rule "on the fly"

To create a new rule in Drools, do I need to have all classes declared in the rule already deployed? A business person can create a new rule and deploy it "on the fly"? What I mean is a hot deploy of this new rule, without coding, compiling and…
Michael Henrique
  • 235
  • 1
  • 2
  • 10
0
votes
0 answers

SSIS validate incoming payments

I am working on a package to process incoming payments from external entities and match them against existing "bills". Each payment has a reference to to bill_id, so matching is easy. Bills are then flagged as paid. Problems is payment may bounce…
gif
  • 9
  • 1
0
votes
1 answer

Strange NullPointer on Drools Evaluation

I'm working with Drools 5.4, and have been experiencin an NPE in a block of code similar to this: rule "NPE sometimes" when $person : Person((name == null || name.last == null || name.last.empty), person.uniqueId != null) then …
josh-cain
  • 4,997
  • 7
  • 35
  • 55
0
votes
1 answer

Enforcing business rules using a Procedure in Oracle

How do you write a procedure which shows that one field's value cannot be higher than another field's value, in terms of numbers. Say. an employee'a salary can't be higher than his manager's salary. I've never done one before
anon
0
votes
1 answer

Json Business values from server side to client side

I have several business values such as date ranges, prices ranges, coeficients, etc. I don't want hard code this values so I thought return to the client side from server side a JSON with all of these values so I have some questions. Is this a…
Cristhian Boujon
  • 4,060
  • 13
  • 51
  • 90
0
votes
1 answer

Works only while debugging javascript not otherwise

my code in a javascript file: $.getJSON('assets/jsons/fields.json', function(fieldsData){ fieldsdata = fieldsData; }); $.getJSON('assets/jsons/rulesjs.json', function(rulesData){ rules = rulesData; }); …
0
votes
1 answer

How to fetch values from specific elements which are dynamically created in JavaScript

I am new to Javascript and Jquery. I started making changes in business rules by Chris Powers. https://github.com/chrisjpowers/business-rules I want to add a range slider in numbers and want to add a number spinner also. I have tried using open…
0
votes
1 answer

Oracle Policy Automation using Drools

Is there some feature similar to Oracle Policy Automation - Oracle Web Determinations in Drools ? How can this be achieved using Drools ?
sivan
  • 79
  • 4
0
votes
2 answers

enabling / disabling of rules

I am trying to come up with a mechanism in ODM to enable or disable a rule based on some input parameters like sales-zone, type of product and 6 or 7 other parameters. I don't want to put all these 7 parameters into the condition within the rule…
rahulmohan
  • 1,285
  • 11
  • 19
0
votes
1 answer

How to deal fluctuation cost record for single product

Currently I'm being requested to develop and improve php & mysql web-based system. The systems get used to manage qty in hand, keep all record inventories, and sales of consumption foods. I had been lent some authorisation ID as admnistrator keepers…
Naoki
  • 1
  • 2
0
votes
1 answer

"no viable alternative at input n" and "mismatched input"

I have the following class public class DroolsObjectRule { private String backend; private Long time; private Long avgTime; private boolean allow=true; private String message; //Set //Get } My rule rule…
UserMan
  • 471
  • 2
  • 10
  • 20
0
votes
1 answer

Drools Execution, get number of retracted

I'm trying to return the numbers of retracts that a drools session execution have. I can obtain the number of executions: ... final Command fireAllRulesCmd =…
Ganchix
  • 315
  • 4
  • 13
0
votes
1 answer

Commands that broke business rules should never reach the bus

I have a Provision, this Provision has state with relative constraints. For example: I can accept a Provision only if its actual state is authorized. Since this is clearly a business rule I code it inside my domain model: public void Accept() { …
BAD_SEED
  • 4,840
  • 11
  • 53
  • 110