Skip to main content

Questions tagged [business-rules]

Filter by
Sorted by
Tagged with
2 votes
3 answers
137 views

Explicit business rules vs business rules through events?

I don't know how to look for this so I apologize if this is already answered. I'm wondering how to decide what is best in terms of SRP and explicit business rules. I feel that writing business logic ...
JorgeeFG's user avatar
  • 697
2 votes
1 answer
499 views

Centralize input validation across multiple Microservices

My company, which specializes in logistics and transportation, delegated the majority of the backend microservices to our team. All of the microservices (which our team inherited from "past ...
lecarpetron dookmarion's user avatar
1 vote
3 answers
446 views

How do you record and track your business logic for software projects?

In my work, which is a UK university, we currently have no specific way of recording and tracking business logic and rules as they arise from stakeholders for our in-house software projects. We use ...
Stephen Beale's user avatar
-2 votes
1 answer
648 views

How to create Business rule engine in PostgreSQL? [closed]

Our organization is into Health Care RCM business. In that, we use to receive medical records (called as accounts, which is a business phrase) and our staff (Medical coders) use to do medical coding, ...
Senthil's user avatar
3 votes
2 answers
233 views

Getting the UI to know about Business Rules for Form Controls

Situation: VB.NET WinForms application, using the WinForms as a presentation layer project. Another class library project containing the business layer, in the form of CQS and Service classes, plus a ...
HardCode's user avatar
  • 654
1 vote
1 answer
66 views

Writing specification: can business rules apply to a specific vendor or third party service implementation?

I am writing a simple specification for a module that is part of a bigger call center application. First I write down business rules, then application logic. I realize that some rules apply only to a ...
Hans's user avatar
  • 416
0 votes
0 answers
176 views

Design pattern for intercepting requests to an API (Rule Engine)

I want to use a rule engine to centralize business rules. My rules require information not typically owned by systems that call the rules engine. I don't want to complicate these systems (System A and ...
LazyCoder's user avatar
  • 617
5 votes
2 answers
1k views

Domain driven design model version

sorry for the long question, but I love DDD but there is a problem I can't seem to resolve. We have a problem when adding business rules to the aggregate root. Our architecture is mostly like this ...
bachibusuc's user avatar
0 votes
4 answers
133 views

Is web application routing Enterprise or Application Business Rules from the viewpoint of Clean Architecture?

From the one side, customer can order "I need products list on /products and conversion statistics on /statistics/conversion". In this case, we need to obey in and write something like: ...
Takesi Tokugawa YD's user avatar
45 votes
5 answers
9k views

Should an e-commerce application reserve products before attempting payment?

I'm designing an e-commerce application and I'm concerned about users occasionally experiencing this: A user orders a product and is redirected to the payment processor. While the user is paying, ...
paj28's user avatar
  • 1,665
-1 votes
1 answer
180 views

Designing a system which can use business rules to determine whether there is a difference between two versions of an entity

I'm trying to design a system which can determine whether there is a difference between a field or not given two objects. In my tool, we get multiple versions of the same title, with minor ...
user1692342's user avatar
1 vote
2 answers
1k views

How to abstract the data layer when using Spring Data?

I have decided to try to create my own board game implementation. Probably going to use a REST-api to expose the contract. I'll figure out what database, communication, ... tools I'm going to use once ...
abstract christmas tree's user avatar
2 votes
3 answers
742 views

What defines a business rule, as opposed to application or presentation logic?

The way I explain it to myself is that a business rule is a requirement for a domain concept of an application. One of the core tasks of my current app is to send notifications. Therefore I have a ...
Hans's user avatar
  • 416
1 vote
4 answers
1k views

Rules engine suggestion for hard coded if-then-else

Reposting question as Previous post on same Topic was not clear. Currently our financial application receives multiple feeds in csv format from client, there are usually 100k to 5M rows of data. ...
arun kumar's user avatar
0 votes
3 answers
119 views

Stop a process for human control if some score is reached (Screening System)

Say I have a blogging system. Users can create posts that will get automatically published unless some score is reached. So when users save a post, we do some calculations and add up some numbers ...
Tali Luvhengo's user avatar
0 votes
2 answers
4k views

data vs business logic

Today my manager said: 'Amir, don't mix the business logic with data in database'. I surprisingly shocked! I said 'Where?'. According to wikipedia business logic is: In computer software, business ...
Amish Shabani's user avatar
-1 votes
1 answer
45 views

Tools for generating a form from a schema, and applying process flow logic

We have a situation where the business has a range of datasets which end users contribute to. The business needs flexibility in adjusting or rather extending these datasets, and also publishing new ...
Codek's user avatar
  • 107
3 votes
2 answers
2k views

DDD - delegate business rule of domain object to external service

Situation: I am implementing DDD in my first project and I would like to clarify how to correctly implement strategy pattern (in my case check if API token is active). This is a business rule of ...
jnemecz's user avatar
  • 299
2 votes
1 answer
787 views

DDD: Should create domain model for complex application layer?

I'm midway through Eric Evans' DDD book but don't think this question would be answered in the book. If an application has its own complicated concepts different from the underlying domain, can we ...
Kapil Dhaimade's user avatar
6 votes
3 answers
859 views

Is it good practice to put service business logic based on audit trail?

Our application creates audit trails in response to system actions and user actions. Our business logic depends on these audit trails to find out which user performed what action. Is it good practice ...
Durgaprasad Budhwani's user avatar
2 votes
1 answer
1k views

Imposing conditional entity relations

While working on an application, I am facing an issue. And I am not sure how to solve this. For explanation I have managed to come up with a simple example below: Consider a Grocery Store ...
Kishor Prakash's user avatar
4 votes
3 answers
986 views

Concept to validate objects across languages?

An interesting question I've stumbled upon: Let's assume a java application creates a data model, converts this data to a json object with two fields and uploads it to a server: { "FirstName": "...
Samuel's user avatar
  • 723
0 votes
0 answers
613 views

Rules Engine (Approach/Pattern/Framework) for applying filter queries to data

I've inherited a somewhat complicated data-model in a SQL Database that I'll soon have an opportunity (read: nececssity) to overhaul. The data-model represents a Product catalog. So there's a table of ...
Eoin Campbell's user avatar
0 votes
1 answer
962 views

Validation Rule or Business Rule

I am in a confusion where I cannot decide whether a rule is validation rule or Business rule. I have simple POJO with JSR 303 bean validation rules. public class VehicleDto { @NotNull(message = "...
Mani Rai's user avatar
  • 103
0 votes
1 answer
578 views

Correct way to inform business rules violation during JSON parsing

We have the following scenario in our company: There are some business objects which have business rules associated with them. One of these objects, Person, has the following rules: A Person must ...
IS1_SO's user avatar
  • 347
22 votes
5 answers
15k views

Clean architecture validation in domain vs data persistence layer?

I'm studying up on clean and as a result am quite dramatically rethinking a great deal of how I design and write software. I've thing I'm still wrestling with however, is for business rules like "on ...
Dale Holborow's user avatar
5 votes
1 answer
714 views

Complicated Data Constraints -- Business Rules or Database Constraints?

I inherited a project that includes a database (MS SQL Server) that was filled to the brim with bad data. I've manually cleaned it up, which was a painstakingly tedious process and am working on ...
JNYRanger's user avatar
  • 203
0 votes
2 answers
2k views

How To Design BLL in ASP.NET MVC

I'm trying to design a N-Tier Solution for my existing WebAPI project. I have a WebAPI project where, as of now, all the business logic are written in the controllers and the data validation are done ...
Krishnandu Sarkar's user avatar
10 votes
3 answers
8k views

How acceptable is to keep business logic outside entities (in separate service classes)?

We were taught that objects are self contained things with data and behaviour and therefore they should have methods that act on their attributes. But there are several situations when this coupling ...
TomR's user avatar
  • 1,009
5 votes
2 answers
562 views

Preferred approach to a matching process

I am currently in the process of putting together a matching algorithm. The matching process is as follows: Query data is used to perform a "lookup" on a set of reference data in order to determine ...
Ian's user avatar
  • 159
13 votes
5 answers
12k views

How to fit a rules engine in a microservice architecture when it requires lots of input data?

Current situation We are implementing (and now maintaining) an online shopping web application in a microservice architecture. One of the requirements is that the business must be able to apply ...
Didier L's user avatar
  • 241
0 votes
1 answer
1k views

Specification pattern or entity / value object validation

I m trying to understand the core concepts of DDD and I m having some troubles dealing with validations. In fact, I m actually wondering where and when should I use specification pattern instead of ...
mfrachet's user avatar
  • 1,561
10 votes
4 answers
619 views

As a programmer, how can I speed up my adoption and understanding of business rules?

I've been a developer for a while. I'm far from the best out there. (As I sit by myself in this room, I wonder if I'm even the best in here.) However, I've come to understand my tools, and I've come ...
user avatar
2 votes
1 answer
2k views

business rules, business proceses and business logic

I am not 100% sure of the meaning of these terms. Is a business process a flow in an application? (e.g. creating an invoice) Are business rules parts of a business process? and, are business processes ...
Razvan's user avatar
  • 133
2 votes
2 answers
2k views

Designing voucher system in e-commerce application

I'm currently designing voucher system to be implemented in our company e-commerce application. I'm currently have voucher table in database which contains following information : Unique voucher ...
ramaadhitia's user avatar
20 votes
4 answers
31k views

What is the difference between business and application logic? [closed]

Please note that I asked the same question on stackoverflow but they directed me to ask here. While I am trying to discerne the difference between the application logic and business logic I have found ...
Mo Haidar's user avatar
  • 537
0 votes
2 answers
705 views

What to do about complex business logic based on many options

To preface, I think this problem would be easier to understand if I gave an example: How does a complex tax evaluation application manage multiple tax laws and personal situations? I inherited a web ...
Chris's user avatar
  • 177
0 votes
2 answers
1k views

Handling Business Logic/Validation Race Conditions

I'm working on a Training Enrollment web application with the following (simplified) features: Maintenance (Add, Edit, Deactivation) of Trainings Student sign-up Student enrollment to Active ...
rro's user avatar
  • 279
32 votes
2 answers
11k views

What does "business logic" actually mean if not "all non-3rd party code"?

I've heard people talk about business logic a lot at work, and online, and I've read several questions on this site about it, but the term still doesn't make a lot of sense to me. For example, here ...
Ixrec's user avatar
  • 27.7k
3 votes
1 answer
601 views

Versioning business rules

TL;DR Storing ever-changing business rules so that an app can behave like it did at moment X in the past. Can it be done? If so, how? Long version At this very moment, this is more of a thought ...
s.m's user avatar
  • 786
25 votes
4 answers
26k views

What exactly is a business rule? [duplicate]

I'm trying to better organize my application architecture, so I've been doing some reading, but I keep running into references to "Business Logic" and "Business Rules". I've never really understood ...
hal's user avatar
  • 396
0 votes
1 answer
559 views

Complexity limits of solutions created in Google Spreadsheets

I am creating a solution where I essentially put all rules regarding communication with customers (including automatic invoicing, reminder emails, welcome emails, etc.) into a Google Sheets and use ...
David's user avatar
  • 4,439
5 votes
2 answers
382 views

How to handle a vendor who asks for the solution of an issue they could not solve

Being a small department of developers, it's not uncommon for us to outsource projects. We have a set of companies that we really like to work with, very reliable and good local people who appreciate ...
chrisboustead's user avatar
4 votes
3 answers
2k views

MVC and the business rule

I need to know where in the MVC should I apply the business rule. Imagine the situation: I have a school and I need to generate a calendar of classes for teachers. Each teacher has a school subject ...
David Rodrigues's user avatar
2 votes
1 answer
1k views

Front-End Business Rules / JSON

I am working on a project that now needs business rules. One design discussed is to make API calls (based on the form we are on) which responds with business rules for form input. I am unsure if this ...
NullHypothesis's user avatar
3 votes
2 answers
1k views

Implementing bussiness logic with a large number of business rules and processes

We are currently working on a project that heavily relies on a database. Among many tables the main focus is on table "data" which is linked to another table "data_type" as many-to-one, which is then ...
Tez's user avatar
  • 33
21 votes
7 answers
2k views

How do I manage a very large set of rules and magic numbers in my program?

I'm somewhat new to programming (I'm a mechanical engineer by trade), and I'm developing a small program during my downtime that generates a (solidworks) part based on input from various people from ...
user2785724's user avatar
1 vote
2 answers
150 views

API for expanation of complicated calculation or business rules?

In online shops there are areas with complicated rules. For example is a product visible in the product catalog is a product sold out what is the price for the product (Discounts, Promotions, ...) ...
k3b's user avatar
  • 7,536
0 votes
0 answers
292 views

Algorithms or patterns for a linked question and answer cost calculator

I've been asked to build an online calculator in PHP (and the Laravel framework). It will take the answers to a series of questions to estimate the cost of a home extension. For example, a couple of ...
kmc's user avatar
  • 101
5 votes
4 answers
3k views

Business rule to display data in all uppercase - how to handle?

Part of a system I am working on manages some securities information (stocks, bonds, etc...) and business rules specify certain fields be displayed only in all CAPS (stock symbols and CUSIPs for ...
Jim's user avatar
  • 1,997