Questions tagged [business-logic]
The business-logic tag has no summary.
182 questions
1
vote
1
answer
241
views
OO design - Process that relies on the current state of objects
We have a CAD software extension, where you can draw products like walls, doors, windows, etc., and you can export the drawing as an order, which contains the parts and costs.
As part of this export, ...
-2
votes
2
answers
152
views
Preventing duplicate customers from company entry vs mobile sign-in [closed]
We have a system where customers can be created in two ways:
By a company — the customer belongs to that company and the company can edit their information.
By a mobile user — the customer has a ...
-1
votes
1
answer
76
views
Complex domain problem to be modeled with DDD
There is a case management application.
New requirements want to add statuses to cases.
The case will go through a series of statuses until completion.
Each case belongs to a case type. There are many ...
3
votes
3
answers
1k
views
Should business logic classes be POJO only?
I read about three-tier architecture and I have a question: I read that in business logic (that is, what is in logic tier) there should be POJO classes, but in most Spring manuals these classes are ...
1
vote
3
answers
344
views
Where to handle Validation Errors in Business logic layer?
I'm currently designing a multi-layered application and am trying to figure out the best practice for error handling within the Business Logic Layer (BLL).
Should I handle errors directly within the ...
2
votes
3
answers
163
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 ...
0
votes
0
answers
50
views
Balancing logic placement in the domain and general perfomance of the system
I am writing my first application using DDD (in Node with TS) and I started writing all the domain first -- before starting the repositories/DB and then the application, while writing unit tests for ...
0
votes
1
answer
95
views
Validating data and logic outside the domain
I have a budget entity in my domain which can be closed by the user if the budget is open. This means if the budget opens today and closes in seven days, in between this time I can close it, not ...
1
vote
2
answers
226
views
Placing business logic on a not so small/big project
I am having a bit of problem trying to find the correct place for business logic. The project I am working on isn't huge, but is not small either and has a very considerable importance in my company. ...
1
vote
3
answers
555
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 ...
3
votes
1
answer
2k
views
How would you implement a promotion/discount system?
Two recent failed projects in my career involved trying to implement a discount/promotional offer system for retail. For example, a retailer may want to offer discount codes in emails or newsletters, ...
0
votes
2
answers
143
views
Services: Which structure is a better idea?
I'm designing my service layer for a GraphQL API and there are many situations in which I can't decide if code relating to a table should belong in it's own class, or the class that 'owns' the data. ...
1
vote
2
answers
244
views
Strategies to abstract away technical details when dealing with transactions
I like programming in such a way that every component/injectable of the applications I build, has a clearly defined scope, and it's easily tested.
With years working as a Developer I've come to ensure ...
1
vote
0
answers
232
views
Business rule or repository implementation rule in Clean Architecture
I'm studying Clean Architecture with python and got into this "problem" of choosing where to implement a rule (that I considered a Business Rule, maybe I'm wrong)
I have 2 Entities
@...
-1
votes
2
answers
171
views
How to make domain objects accessible to MVC controllers and views?
Summary of my question in a short form: How to propagate changes of domain objects upwards without introducing application logic into them?
Following 'facts' are based on prescriptions from respected ...