business-rules

Rule development and deployment management with Drools Guvnor

不问归期 提交于 2021-01-28 20:22:21
问题 Introduction Drools Guvnor has it's own versioning system, that in production use allows the users of an application to modify the rules and decision tables in order to adapt to change in their business. Yet, the same assets continue to live on the development version control system, where new features to the app are developed. This post is for looking insight/ideas/experience on rule development and deployment when working with Drools rules and Guvnor. Below are some key concepts I've been

How to solve this exercise about Oracle Triggers

北慕城南 提交于 2020-12-06 08:22:08
问题 I have to solve this exercise about triggers: Consider the following relational database schema used to represent project information: Person (ID, Surname, Name, Nationality) Project (Name, Manager, StartingYear, NumPeopleInvolved, International) Personnel (Project, PersonID) Specify the triggers required in Oracle to maintain the following integrity constraints: a) The number of people involved in a project (attribute NumPeopleInvolved) must be consistent with the number of tuples entered in

Using the “extends” functionality in drools spreadsheets?

孤人 提交于 2020-01-25 21:09:48
问题 I have a question about using a certian drools functionality in drools decision spreadsheet, that would help a lot in reducing the files and making them more readable. I can't add more than two links so please downlad this .zip file that includes: Version1.PNG, Version1.drl, Version2.PNG, Version2.drl, Version3desired.drl http://s000.tinyupload.com/?file_id=89653236807266194978 So here is the sample rule that we are using right now (something similar)Version1.PNG And this when converted to a

Bounded contexts sharing a same aggregate

假装没事ソ 提交于 2020-01-06 13:11:03
问题 DDD exposes bounded contexts, domain models, aggregates... but I often miss the keypoint of business rules. I would like to know how business rules integrate into this approach. Here is an example : Imagine you have 2 bounded contexts in a credit company. One for debt recovery, the other for early refunds. These contexts embed real business specificities. In a conceptual point of view, I think these bounded contexts should separately embed common model parts, and similar domain model entities

Is using Rule Engine to implement chain of rules [complex business logic] overkill?

白昼怎懂夜的黑 提交于 2020-01-05 07:45:20
问题 Recently, I am reading about the rule engines in JBOSS Drools Manual [ref - 2.2.5. Strong and Loose Coupling]. Below is the excerpt from it 'If your rules are all strongly coupled, the chances are that the rules will have future inflexibility, and more significantly, that perhaps a rule engine is overkill (as the logic is a clear chain of rules - and can be hard coded. [A Decision Tree may be in order]). This is not to say that strong or weak coupling is inherently bad, but it is a point to

Validation Rules and Business Rules in MVC

一笑奈何 提交于 2020-01-04 01:24:49
问题 I have a MVC web project. According to best practice, where is the correct place to add my validation rules and business rules? Validation rules would be the required fields and required formats. Business rules would be "this email is already taken in the database" Here's how I am currently doing it in my register model : public class RegisterModel : IValidatableObject { [Display(Name = "Email address")] [Required(ErrorMessage = "The email address is required")] [EmailAddress(ErrorMessage =

How do you share configuration information or business rules between languages

坚强是说给别人听的谎言 提交于 2019-12-28 15:34:29
问题 I'm looking for best practices for using the same data in different places without repeating yourself - this could include configuration or business rules. Example 1. Data validation rules where you want to validate on the client using javascript, but you want to make sure by validating on the server. Example 2. Database access where your web server and your cronjobs use the same password, username. Ease of processing and a human-readable solution would be a plus. 回答1: Encode your data in

How to pass a collection from a rule to a java method

独自空忆成欢 提交于 2019-12-25 05:12:29
问题 I have a collection of Type Cars which I need to pass from the ILOG Jrules to my Java evaluation method. My Java evaluation method can accept an Object, so a collection can be accepted. I need to process the collection of cars in my Java XOM and then return some output to ILOG. But how do I create a collection of cars from my ILOG JRules? And for DVS testing, how do I pass the collection of cars from my DVS Scenario Excel sheet? 回答1: To clarify Tito's comment on the first answer: Well, it

Data driven business rules.

半腔热情 提交于 2019-12-23 10:27:10
问题 I am using SQL SERVER 2005. I have a table table1(ID,col1,col2,col3,col4); Now I have a business logic like: If col1 >= 126 and col2 > 1 then col3 = 0 if col1 >=126 and col2 < 1 then col3 = col1+col4 Now what I am trying to do is store all these rules in database and make it data driven. THe reason for that is to give the end user more flexibility. If tomorrow the business rules changes, end user have the flexibility to change it through the GUI. For eg. if tomorrow the business wants to

Drools JBOSS rule Nested IF's

六眼飞鱼酱① 提交于 2019-12-22 01:15:49
问题 I am a newbie with Jboss Rule. I have gone through the documentation but I fail to find the approach to begin writing rule for following code sample. For each User code in the list { If User code = ‘11’ { If User code ‘17’ present in the group { Add letter id 1 } Else If User code ‘18’ present in the group { Add letter id 2 } } Else { Add letter id 3 which is the letter need to be sent for code 11 } } I would really appreciate if anyone can give me a hint/idea how to go about it? EDIT: Hi, So