Hello,
Our team is using Drools ruleflows for evaluations. Now we are planning to migrate to decision tables instead.
In the Drools ruleflow version, we used to have DRL files that have query component to extract objects created within the context of DRL files from working memory.
I'm stuck on doing the same in Decision Table? We are...
Hello. I am unsure if this question qualifies to be here but I cannot think of a better place to go.
I am building a web application that has multiple alternative paths to most of the use cases. These paths I perceive as business rules. I would like to code my application first for main scenarios and then apply alternative scenarios as ...
I'm new to AOP so bear with me. Consider the following scenario:
A state machine is used in a workflow engine, and after the state of the application is changed, a series of commands are executed. Depending on the state, different types of commands should be executed.
As I see it, one implementation is to create List<IAction> and...
The product I have been working on has been in development for the past six years. It started as a generic data entry portal into an insanely complex part WPF/part legacy application. The system has been developed for all these years without a single Unit test in its fold. Now, the point has been raised for a comprehensive unit testing f...
Hi All,
We're embarking on a module which will generate some recommendations based on some criteria. The criteria will be in the form of set of Business Rules and hence I was considering using a Business Rule Engine like Drools(open source and java :-) )
we need to learn Drools fast (2-3 weeks) and be able to implement rules using JBos...
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
...
I am looking for the best way to keep track of the business rules for both developers and everybody else (support staff / management) in a startup enviroment. The challenge is that our business model requires quite a lot of different business rules, which are created pretty much on the fly and evolving organically after that. After runni...
I need implement business using nhibernate ORM
I have two entites
Project
(Id,Name,Effort)
Task
(Id,Name,Effort)
I need update Effort in Project when Effort in Task changes.
How to do it ?
I have planed to use event system build in nhibernate but still don't know how to access to Project entity within Task Event
Here is EventListene...
Currently, we use NHibernate to map business objects to database tables. Said business objects enforce business rules: The set accessors will throw an exception on the spot if the contract for that property is violated. Also, the properties enforce relationships with other objects (sometimes bidirectional!). Well, whenever NHibernate ...
Hi,
I have a requirement to build a Business Rule Engine. I use the SQL SERVER 2005. The business rules are massive, like 2000 pages long.
eg.
If col1 = 'xyz' then populate col2 otherwise not.
if col3 = 'abc' and col4 = 'def' then col5 = 'ghy'
etc. etc.
So, I think we can't just write all those rules in if else condition in a proc...
I am looking for a java based workflow engine which is powerful enough to have most of the workflow features but simple to implement.
Features like transition from one state to another based on approvals by people who have permission to approve a state, the transition could be automatic also if all the required fields/data are available...
I have a table called Book. This table has 3 columns viz id, price and discount. If price is greater than 200 then discount should be 20%. While inserting data in Book table the discount value should be updated based on price value. How can this be handled when data is inserted or updated in Book table?
Please provide all possible solu...
Hi
I am trying to write a rule in drools drl language where I am want to do something like !(A && B) but it doesnt seem to like the ! operator or the word not. I am struggling to find good documentation on drools
Please see sample code below:
rule "Test Rule"
when
testBean : testBean(!(testList contains "test" && testList2...
I am working on a ACH payment processor and was wondering if I can scope the drivers license field against some rules. Any ideas on this? Can I assume numbers only or anything else more like SSN
Thanks
...
Need to implement custom business/authorization rules for the product that is based on the well-known CSLA framework.
Examples:
The logged-in principal or admin can
update her details, not anyone else.
The last user in the system can't be
deleted.
Currently I know that rules can be applied during setup phase:
BusinessRules.AddRule...
Hi,
I have a set of User Stories and I have a set of business rules (primarily laws binding my requirements to be compliant). In Agile SDLC I'm not sure where does theses "rules" are attached to my user stories.
For example, a user story like:
As a doctor I want to add patient information in order to create a new patient file.
An...
In our Oracle datbase we have a table called RULES, with a field called SQLQUERY. This field is a varchar with an SQL statement stored. The PK is DM_PROJECT.
A typical statement that is stored could be
select ACCOUNTNUMBER from CUSTOMERS where ACCUMULATED_SALES > 500000
I want to do something like this:
select
*
from
customer...
Imagine a hypothetical object with a number of attributes:
pseudocode:
class Student
{
Name: String;
Birthdate: DateTime;
Height: int; //inches
GPA: float; //"Grade Point Average"
Citizenship: string;
}
Now the user enters in values, and the object gets them:
Name: Shelby Lake
Birthdate: 6/19/1991
Height: 63
GPA: 5.6
...
I will regularly read some discrete states, and applying some rules to differences in states I will report some errors. Rules can be changed in time.
What are best-practices to solve such a problem?
Thanks.
...
Hi,
Suppose I have a service StateService which has a method ChangeState.
ChangeState(State toState, DomainObject object)
I have business rules that checks whether the destination state is valid or not in the domain objects current "state", how can I technically check those rules without first setting the toState on the domain object...