Business Request的虚实之道
Business Request的概念,与http request是不同的。为避免误解,特意加上Business一词修饰。
所谓虚实是指是否将Business Request概念实例化。不做实例化的理由时处理简单;实例化则有助于处理Business Transaction以及账目模式。
一个业务上的Business Request可能包括多个Request Form,与核心业务对象对应,例如:在线订单,就包括了购买物品及其数量和折扣,支付协议和发货协议等。
对于没有实例化Business Request的情况下,在实际业务操作时,对每一个form的操作都需要一个物理的transaction来支持。
这样做的问题是,由于没有记录Business Request,直接操作业务对象,在做业务日志时只能记录操作前以及操作后的信息(既“减肥前,减肥后”);同时cross多个transaction,要支持查询到一次Business Request所有操作的信息,需要新建一个log index或者类似的手段,在业务开始时获取注册一个index,所有log操作中引用这个index,在业务结束后close该index。虽然如此,也带来的是业务上做undo以及redo操作的不便。
但是如果实例化Business Request,就很容易处理这两样操作。建立一个Business Request,同时记录所涉及的Request Form。这样做的好处是:可以很容易的记录一些额外的信息;同时可以很容易的支持approve操作(既俗说的“管帐的不管钱,管钱的不管帐”)。不过目前大部分的系统都没有处理Business Request实例化,不是所有的业务操作需要Approve,另外实例化的麻烦是Request Form会和Domain Object看起来一样,已经处理了一个log对象,再处理一个request对象总是让人多少心里有点不爽;而页面处理需要抽取出变化的properties。
(原文发在http://www.blogjava.net/AndersLin/archive/2006/09/19/70643.html,不过business action自己也没想好,就不贴在论坛上了。一直在等partech的Domain Model驱动一章,不知道什么时候能出来)
分享到:
相关推荐
Business analysis is defined as the process in which business needs are identified and solutions proposed. This process is regarded as one of the most important parts of systems development because no...
Business
SAP Business One 条码方案
Business Modeling and Data Mining demonstrates how real world business problems can be formulated so that data mining can answer them. The concepts and techniques presented in this book are the ...
SAP BusinessObjects Business Intelligence(BI)解决方案有助于企业更好地了解自己的业务,制定更加明智的决策。再通过使用SAP的其他分析解决方案作为补充,企业便可监控、发掘和分析数据,然后利用这些数据制定计划...
Business Modeling with UML:Business Patterns at Work.pdf
sap business one培训之敏捷财务
SAP Business one 打印格式设计
BusinessObjects Enterprise XI 是支持全套制表、查询和分析功能的业务智能平台。它还为语义层、数据集成和安全性提供了平台级的支持。BusinessObjects Enterprise 为整个系统提供基于 Web 的全面管理和配置。此版本...
A new technology called Business Process Management, or BPM, helps software architects and developers design, code, run, administer, and monitor complex network-based business processes. BPM ...
Global Business Today.pdf )
Partner at Coriolis Ventures, 'This timely book says out loud what has finally become apparent: in the modern world, Data is Business, and you can no longer think business without thinking data....
Business Analytics Using R - A Practical Approach English | 5 Feb. 2017 | ISBN: 1484225139 | 266 Pages | PDF | 14.52 MB Learn the fundamental aspects of the business statistics, data mining, and ...
IBP是一个网站管理软件,一个网页优化工具,能帮助你提高站点搜索引擎的速度。真正全能的网站促进器。
Business Data Processing examines various aspects of data processing in business development including an extensive overview of functional approaches, key data, governance, enterprise protection, the ...
ESSENTIALS OF BUSINESS COMMUNICATION, 9TH EDITION presents a streamlined approach to business communication that includes unparalleled resources and author support. ESSENTIALS OF BUSINESS ...
The practice of business is changing. More and more companies are amassing larger and larger amounts of data, and storing them in bigger and bigger data bases. Consequently, successful applications of...