Business logic is the abstract thought process behind decision making in human transactions. Translation of business logic into code is one of the major tasks in producing business software.
Questions tagged [business-logic]
626 questions
6
votes
1 answer
How do you keep view logic out of the model and business logic out of the view-model in MVVM?
I can't quite figure out how to get the view model to be notified of changes in the model without adding a bunch of UI specific stuff like INotifyProperyChanged and INotifyCollectionChanged in my model or create tons of different events and do a…

Davy8
- 30,868
- 25
- 115
- 173
6
votes
4 answers
Are middleware apps required to do business logic?
Let's suppose I have a large middleware infrastructure mediating requests between several business components (customer applications, network, payments, etc). The middleware stack is responsible for orchestration, routing, transformation and other…

Miguel Ping
- 18,082
- 23
- 88
- 136
6
votes
3 answers
Domain Driven Design (DDD): Domain Event Handlers – Where to place them?
I am confused about where to handle domain events in an application that is based on the hexagonal architecture. I am talking about the bounded-context-internal domain events, and not about inter-context integration/application/public…

domin
- 1,192
- 1
- 7
- 28
6
votes
4 answers
C# - Usage of transactions in business layer (SQLServer 2005+ , Oracle) - good examples
I am gonna build a service using 3-tier architecture and I am really worried about how to handle operations in a transacted way.
I know I have 2 options: IDbTransaction and TransactionScope... but I am not really decided for which one to go,…

Learner
- 3,297
- 4
- 37
- 62
6
votes
3 answers
Dependencies Symfony2
I'm wondering if there is a proper way to check the dependencies.
For example I've got a NewsBundle. Now I'll have to check if there is a CommentBundle. If there is one, it should execute a few more Code.
Any suggestions?

Flask
- 4,966
- 1
- 20
- 39
6
votes
3 answers
Is business logic subjective?
I have a team lead who seems to think that business logic is very subjective, to the point that if my stored procedure has a WHERE ID = @ID — he would call this “business logic”
What approach should I take to define “business logic” in a very…

Toran Billups
- 27,111
- 40
- 155
- 268
6
votes
4 answers
Event Sourcing - where does Domain Logic fit in?
I've just been watching Greg Youngs talk on Event Sourcing, but i'm confused as to where business logic fits in. A simple example:
1) Shopping Cart Created
2) Item Added
3) Item Added
4) Promotional Code - 20% Off
Is the Promotional Code…

TBD
- 771
- 1
- 11
- 27
6
votes
2 answers
separation of logic and UI in titanium (javascript)
i'm new to appcelerators titanium and javascript and i'm interested in coding an iphone app. i recognized that there is a need of "many" code for creating the UI. that's no problem so far, but i tend to separate that code from my application logic…

mkind
- 2,015
- 2
- 20
- 25
6
votes
8 answers
Best approach to programming highly complex business/math rules
I have to take a piece of data, and apply a large number of possible variables to it. I really don't like the idea of using a gigantic set of if statements, so i'm looking for help in an approach to simplify, and make it easier to maintain.
As an…

Erik Funkenbusch
- 92,674
- 28
- 195
- 291
6
votes
2 answers
How to update UI from business layer?
I have a three layer application in C#. In business layer i have many threads that do same job .
I want to show the progress of each thread on UI , but i don't have the reference of presentation layer .
How can i do this ? What's the best way for…

Mahdi Amrollahi
- 2,930
- 5
- 27
- 37
6
votes
5 answers
Should i use partial classes as business layer when using entity framework?
I am working on a project using entity framework. Is it okay to use partial classes of the EF generated classes as the business layer. I am begining to think that this is how EF is intended to be used.
I have attempted to use a DTO pattern and soon…

samsur
- 61
- 2
6
votes
2 answers
What is the difference between "workflow engine" and "business process management engine"?
I have heard about these two concepts after a lot of time.
Such as "windows workflow foundation" and Activiti and jBPM and other project is "business process management engine".
Are these two nouns ("workflow engine" and "business process…

lovespring
- 19,051
- 42
- 103
- 153
6
votes
4 answers
cannot implicitly convert type string to char
As I know char is different from string. I give datatype char to a column status in a table.
I am stuck here because i am using char first time. here is my code
cmd.CommandType = CommandType.StoredProcedure;
if (con.State ==…
user2822113
6
votes
3 answers
C# business objects and collections
I'm having difficulty wrapping my head around business objects or more specifically, business object collections.
Here's a quick example of what I'm trying to do.
If I have an Incident Object, this object can have a number of people involved and…

Mathew
- 203
- 2
- 5
6
votes
5 answers
Business rules in the repository?
Let's assume that an application has all necessary business rules in the model / presentation layer and that they work fine. My question is one of whether or not redundant business rules (i.e. a span of two dates cannot overlap any other existing…

Mayo
- 10,544
- 6
- 45
- 90