I am fairly new to web application development. I have defined my problem domain through talking to various stakeholders and putting a process map together - basically a flow chart showing the different steps and processes that the web application must be able to recreate.The problem I am having is that I'm struggling to map this process into application design and code. I was wondering if there are any best practices or development methods that help map a business process into an application design?I have briefly read up about Domain Driven Development and that seems like it may be a good approach. To clarify, I am after a methodology or design principle that will help turn the business process into code. For example, I COULD just map every box in the process map to an identically named class in my code. Thus translating the business process into a domain model (i.e. object orientated) in my code. But is this the best way to do it?
Converting Business Process Maps into Software
web development;design patterns;development process;domain driven design;business logic
After a bit of research I've come across the repository/service design pattern. Both are used within the model context of MVC design pattern. A repository (in my case an ORM) is a model that gets and saves directly from and to a database table sharing the same name. A service (I have actually called mine a 'process') is a model in the MVC sense, but contains a lot more logic than simply just getting and saving from and to a database table. A 'process' model performs all the necessary logic and uses multiple repositories to get and save persistent data.What I have done is develop my database to 3NF and setup a repository model for each table. If my application just requires the data from a table, the controllers call the required repository model directly. For a business process that requires the use of several tables, I create a process model. The name of this process model directly maps to my business process and performs the same steps. This has made translating the business process map into code really easy.Would appreciate any thoughts people have on this approach?