business-logic

Migrating to a GUI without losing business logic written in COBOL

We maintain a system that has over a million lines of COBOL code. Does someone have suggestions about how to migrate to a GUI (probably Windows based) without losing all the business logic we have written in COBOL? And yes, some of the business logic is buried inside the current user interface. ...

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 objective way without offending my team lead? ...

Business Logic: Database or Application Layer

The age old question. Where should you put your business logic, in the database as stored procedures ( or packages ), or in the application/middle tier? And more importantly, Why? Assume database independence is not a goal. ...

Customer File design

How do you model your customer address data and what techinques are you using to ensure the quality of the data? Things like deduplication algorithms, duplicate matches, making sure that packages and invoices can actually be delived and such? Esepcially in systems handling customers in multiple countries. ...

Architecture Tips: Business Logic / Data Access ...

We plan to redesign, improve our (C#) application architecture. Anyone has some framework, hompage or book recommendations? Mainly concerning the business logic. ...

What are the best practices in creating a data access layer for an object that has a reference to another object?

(sorry for my English) For example, in my DAL,I have an AuthorDB object, that has a Name and a BookDB object, that has a Title and an IdAuthor. Now, if I want to show all the books with their corresponding author's name, I have to get a collection of all the Books, and for each of them, with the IdAuthor attribute, find the Author's n...

Formula based pricing. Storage in RDBMS and use in application layer.

Hi, I'm about to enter the 1st phases of designing a commodities trading application. A major function of this application is the capture and evaluation of pricing information. Pricing in this market is not fixed. It is usually a market benchmark +/- a premium. For example: (A and B are market benchmarks) Price = A + $1 Price = A + .5...

Beginners guide to BPEL

What is BPEL? I'm looking for some nice simple examples of BPEL usage. The wikipedia page isn't too enlightening. How about a "Hello world" in BPEL? A BPEL shell? A BPEL IDE? ...

Integrating Business Collection, Datasets with reporting services

What are the best practices and implementation solutions for integrating your Business logic classes with Microsoft Reporting services? ...

Agile Development and ESBs

I'm working on shifting our corporate technological paradigm to Agile Development. It's been a hard process but we're almost there! :) We have legacy systems for our database management (used to be Access, now ported to .NET and MS SQL) and we're developing a framework for our future vision. We want to migrate as much as possible to the...

Can you copy property or constructor-arg valuse from objects in Spring.NET XML?

I believe I came across this a couple months ago, but now I'm having trouble finding the answer. Perhaps someone can just point me to the right section in the documentation? Using Sprint.NET, I'm combining remote XML files into a single application context where the engine objects are separate from the business rule objects. The probl...

Using XSLT to process business rules?

A coworker of mine mentioned that one use of XSLT is processing business rules. He mentioned that there were systems that allowed users to write business rules in some kind of text format, and then the program uses XSLT to process the text and apply the rules at run-time in the application. Can someone shed some light on this subject fo...

Do you think templates represent the best way for separating presentation logic from business logic?

I think most template engines are hard to use for designers and front end developers leaving you, the programmer with the burden of maintaining them. And frequently updating the templates after the designer updates the html mockup is a nightmare because your templates are no longer compatible with the original htmls. I had this problem...

What is the business logic that your code implements? Do you really know?

Do you keep separate (and complete) documentation of the business logic implemented in the code? I often get support cases where I dig into the code to find what's going on, and deep down discover some obscure case statement or an increment of a date by + 1, for example. Then I try to figure out what's going on, explain it to the users,...

Arguments for/against Business Logic in stored procedures

What are the arguments for and against business logic in stored procedures? ...

Best designs for breaking down business logic and data layer when they seem to overlap?

I'm building a MVC web application (using the Spring MVC framework), and I'm a little stumped on the best way to design a particular area. The application has to interact with a series of web services which are not really all that greatly designed, and don't offer much abstraction in and of themselves - basically there is a web service ...

How to provide multiple search functionality in website???

I am developing a web application, in which I have the following type of search functionality; Normal search: where user will enter the search keyword to search the records. Popular: this is no a kind of search, it will display the popular records on the website, something as digg and other social bookmarking sites does. Recent: In thi...

Techniques for dealing with anemic domain model

I've read some of the questions regarding anemic domain models and separation of concerns. What are the best techniques for performing/attaching domain logic on anemic domain objects? At my job, we have a pretty anemic model, and we're currently using "helper" classes to perform the database/business logic on the domain objects. For e...

Business Validation Logic Code Smell

Consider the following code: partial class OurBusinessObject { partial void OnOurPropertyChanged() { if(ValidateOurProperty(this.OurProperty) == false) { this.OurProperty = OurBusinessObject.Default.OurProperty; } } } That is, when the value of OurProperty in OurBusinessObject is changed, if the val...

What is the difference between a ytd report and 12 mtd ?

Whats the difference between 12 mtd , 12 mtd rolling and ytd calculation ...