[I feel that the design of the Middle-layer architecture is actually to layer the business logic layer in the middle, which may be three layers. In this way, different functions are only assembled by different components for reuse]
I. business logic component idea: all or part of the business process is automated. In this process, documents, information, or tasks are transferred according to certain process rules, achieve coordination among members of the Organization to achieve the overall business objectives.
[Interface-oriented programming, controllers do not need to be coupled with specific business logic components]
2. The main problem solved by the workflow is that documents, information, or tasks are automatically transmitted among multiple participants according to a predefined rule, so as to achieve an expected business goal, or promote the implementation of this goal.
[Business methods are classified according to certain characteristics. when processing a business, it calls an assembly business method. The idea of a workflow is that the assembly process and sequence can be changed in different processes]
Advantages of workflow: separates application logic from process logic. without modifying specific functions, you can modify the process model to change the system functions to complete integrated management of production and operation processes or the entire process, it can effectively organize people, information and application tools, and exert the maximum efficiency of the system.
3. Business logic layer entity
Entity class [Easy to operate with type Data]
XML [strong standard support and interoperability]
Dataset [serializable and binable]
Iv. business logic layer framework
Domain Model-service-control
Domain Model: The business object at the domain layer. It only contains business-related attributes.
Service: an application that is an integral part of business process implementation.ProgramDifferent functional units
Control: links between services
[The MVC idea is used in layers. Control calls the functions implemented in the service according to the domain model, and changes the control according to the called service]