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
2 answers

Write business rules in elegant way chaining possible nonexistent attributes

Take a look to this code: >>> class c(object): ... pass ... >>> a=c() >>> if a.b.c: ... print 'hello' ... Traceback (most recent call last): File "", line 1, in AttributeError: 'c' object has no attribute 'b' Quiet! this…
dani herrera
  • 48,760
  • 8
  • 117
  • 177
0
votes
1 answer

How to share data between Drools rules in a map?

I have a rule which accepts Map() as a fact and then sets lots of elements to this map. I want to be able to use this map somewhere else when executing other rules. I read about globals in Drools but seems like they should not be used for this…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
0
votes
2 answers

Can I create a rule file which imports rule(s) from another rule file?

How do I (and can I) import Drools rules or functions into another Drools rules file?
swanand188
  • 35
  • 1
  • 6
0
votes
1 answer

Trying to Implement DecimalAboveThresholdAttribute with problems

I am trying to implement something similar to IntegerAboveThresholdAttribute except that it should work with decimals. This is my implementation of me using it as a BusinessException [DecimalAboveThreshold(typeof(BusinessException), 10000m,…
tehdoommarine
  • 1,868
  • 3
  • 18
  • 31
0
votes
1 answer

Drools Collection Effiency

I have 2 collections of the same type and each object in the collection is key by an id. My goal is to find the same object in both collections and then compare a field against each other. If they are not the same field then store the differences.…
Joe Intrakamhang
  • 489
  • 2
  • 7
  • 14
0
votes
0 answers

Preventing Rule Retriggering in Drools or Alternative Technologies

I'm currently using Drools in a software application to validate a significant number of data objects. The creation process involves multiple steps, and at each step, Drools rulesets are employed to validate the objects being created. These…
0
votes
0 answers

How to trigger privacy impact assessment if processing_activity.special_category_info_available == true in ServiceNow

In our project, entities are not procesisng activities yet, thus we need to do a screening assessment first to get a more complete register of processing activities. I am very new using ServiceNow but have some experience wriitng js. We want to…
Mouse
  • 1
0
votes
2 answers

Define drools conditions in configuration

I am trying to define the conditions of my Drools rules in configuration (as a JSON) so that they can be easily parsed. For example, one of my Drools rules currently looks like this: rule "Rule 1" salience 100 activation-group…
user2963365
  • 81
  • 1
  • 3
  • 8
0
votes
0 answers

Code Effects: Create a custom Action that accepts an expression?

Is it possible to create a custom Action on my that accepts an expression like the built in Set method does? EX: public class EvaluatorClass { [Action] public void SetSomeThing(Expression myExpression) { var result =…
HisDivineShadow
  • 1,036
  • 1
  • 12
  • 21
0
votes
0 answers

How to identify false rule conditions in a Python rule engine?

I'm working on a Python rule engine that evaluates a set of rules against a given data set. The engine works fine when all the rule conditions are true, but I need to know when a rule condition is false and what data is causing it to be false. (Like…
solver
  • 1
  • 1
0
votes
1 answer

kiescanner unable to refresh rules within docker container

I am unable to refresh rules with latest KJAR using kiescanner. We have Artifactory as remote repository. I have provided custom settings.xml . kie-cie is in pom.xml. In docker I am providing M2-HOME. Dockerfile ENV APP_HOME =/app ENV MAVEN_HOME…
Palak Shah
  • 11
  • 3
0
votes
1 answer

Red Hat Decision Manager - DMN Modeling One to Many

We are looking into using Red Hat Decision Manager as our Rules Engine. One thing that isn't clear is how would one setup a one to many relationship using DMN w/ FEELS. Here is an example: Suppose we have 3 clients (A, B, and C) For client A we want…
0
votes
0 answers

How do I make the icons bigger in rule designer for the decision table?

I am using Eclipse version 2020-06 with IBM ODM Rule Designer v 8.11.0.1 installed. I realise that the icons are very small as shown below: I am not sure how to enlarge it. I tried to explore the settings on eclipse (Window > Preferences) and also…
hahilas
  • 33
  • 7
0
votes
0 answers

Oracle Hyperion, Business Rule(Calc Manager) for copy data from BSO to BSO?

As I want to copy data from BSO(Custom Cube) to BSO(Module based cube) in ORACLE HYPERION. I know the logic but do not know the syntax to write that logic. What Level of Generation should be fix? Thanks in Advance. Previous approach was copying data…
0
votes
0 answers

Drools Rule Engine taking too long to update

I have implemented a rules engine based on drools (v7.25). The users dynamically add, update, and delete the rules. The application could be expanded further and currently includes over 15000 rules. These rules are distributed evenly throughout…
Chinmay jain
  • 979
  • 1
  • 9
  • 20