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
0
votes
2 answers
Pros and cons of database events
I am considering rewriting part of an application's data model update methods to include support for registering to events coming from the database. Are there any reasons why this would be a bad idea? Should I limit myself to receiving events fired…

luvieere
- 37,065
- 18
- 127
- 179
0
votes
1 answer
Filtered results by params
I'm learning Rails and trying to do this the right way, but I've struggled mightily finding a solution.
I have a long list of sports rankings in my Ranking model that I'm trying to manipulate based on the filters and general business logic applied…

Ryan Grush
- 2,076
- 3
- 37
- 64
0
votes
1 answer
Use workflow Business logic layer
I use visual studio 2012 and want to use the MVVM design pattern in my application.
I'm looking for documents, books and samples to help me to use workflow in the business logic layer of my application.

mehdi lotfi
- 11,194
- 18
- 82
- 128
0
votes
1 answer
Where to put the business logic in a magento module for an email form?
I'm new to magento and I'm trying to create a module for an email form.
In classic MVC I would send the request to the Controller, but in Magento a controller is only responsible for one URL. So when I want to put my email form on the productpage I…

fvosberg
- 677
- 10
- 30
0
votes
1 answer
When using facade session beans, why should we still use business session beans as well?
When using the facade design pattern to structure an application's business EJB layer, why should we still use session beans for the actual business logic? Is there a specific reason for not just using plain Java classes (if container managed…

Zecrates
- 2,952
- 6
- 33
- 50
0
votes
1 answer
ASP.NET n-tier application validation / business logic
I have a few quick questions about the use of the business logic layer in the average N-Tier architecture application.
I am developing my final year university project, and using a web forms presentation layer, business logic layer, data access…

Stu Ratcliffe
- 41
- 1
- 2
0
votes
2 answers
Mapping increasing rank to decreasing but non-negative points
I need to create a business logic or php function to compute the following: given some input $rank (which is the alexa ranking) I need to compute some $points in such a way that $points will be high for the top ranking website and will decrease with…

Vaibs
- 2,018
- 22
- 29
0
votes
1 answer
Deal with business logic for entities with inheritance in Symfony 2.1
I've read that business logic for entities should be in a separate class (service) instead of being inside an entity class. That sounds correct for me and no problem with it, but what happens when there is entity inheritance?
I mean, I have two…

Izzy
- 53
- 3
0
votes
1 answer
Address class for all countries
I am trying to develop global Address class for my global e-commerce project.
It must be possible to construct different address forms for different address formats so I need global address class for that reason.
Which properties must be common in…

Farid Movsumov
- 12,350
- 8
- 71
- 97
0
votes
1 answer
Best practice for separating application logic
In my application Ive separated next levels of application logic:
Utilities
Application abstraction
Simple/common implementation of the application abstraction (#2)
Concrete application implementation (additional functions and classes to append #3…

pleerock
- 18,322
- 16
- 103
- 128
0
votes
1 answer
How to implement complex message validation/handling flow
I'm developing a web service (in Ruby) which needs to do a number of
different things for each message it receives.
Before my web service can process a message it must do different things:
sanitizing (e.g. remove HTML/JS)
check format (e.g. valid…

Parnas
- 87
- 5
0
votes
4 answers
how to insert string into a javascript object
var myeleArr = {
advertiser :{},
campaign :{},
strategy :{},
};
i want to insert some string into myeleArr.campaign object, so i am doing as shown below,
but console displays…

Manojkumar
- 1,351
- 5
- 35
- 63
0
votes
8 answers
Representing php associative array equivalent to javascript array
Given PHP array :
$forColumnsArr['p_pl'] = array('datatype_names' => array('publisher', 'placement', 'placement_groups'), 'labels' => 'All Placements');
$forColumnsArr['a_st'] = array('datatype_names' => array('advertiser', 'campaign', 'strategy'),…

Manojkumar
- 1,351
- 5
- 35
- 63
0
votes
1 answer
What is the most elegant way to implement a business rule relating to a child collection in LINQ?
I have two tables in my database:
Wiki
WikiId
...
WikiUser
WikiUserId (PK)
WikiId
UserId
IsOwner
...
These tables have a one (Wiki) to Many (WikiUser) relationship.
How would I implement the following business rule in…

AaronSieb
- 8,106
- 8
- 39
- 58
0
votes
1 answer
Calculating future days based on time
I'm trying to create a function that calculates a delivery time based on today's date.
It needs to do the following:
if the time is less than 2pm ; add 3 days to today's date
if the time is greater add 5 days
if the 3/5 days land on a weekend,…

sipher_z
- 1,221
- 7
- 25
- 48