Notwithstanding the advancement of software engineering for enterprise applications, the process of software implementation is still time-consuming and error-prone. This situation is more severe when developing the custom software, because the requirements are always changing during the whole development processes. This issue could be alleviated by reusing exiting code or services in the private and public repositories. Nevertheless, the reuse could fail if no existing service is matched or existing services could not be composited to satisfy the requirements. Eventually, the developers have to implement the business logic manually for the un-satisfied requirements. In this paper, we present an approach which can automated generate business logic from requirement model for enterprise applications. Unlike other works, our approach does not need to specify design model such as sequence diagram, the business logic could be directly generated from operation contracts of requirement model. Operation contracts only contain the preconditions before executing the action, and the postconditions after execution. Moreover, the generated off-the-shelf code is adopted the same multi-layer structure as Java EE and .NET platforms which are robust, scalable, and widely used in enterprise application developments. Finally, a case study of library management system demonstrates the feasibility and efficiency of the proposed approach in our implemented RMCode tool.
翻译:尽管企业应用程序的软件工程有了进步,但软件实施过程仍然费时而且容易出错。在开发定制软件时,这种情况更为严重,因为要求在整个开发过程中总是在不断变化。这个问题可以通过在私营和公共储存库中重新使用退出的代码或服务来缓解。然而,如果没有现有的服务能够匹配,或者现有服务无法组合以满足要求,那么再利用就会失败。最后,开发者必须手工实施不满足要求的商业逻辑。在本文件中,我们提出了一个方法,从企业应用程序的需求模型中自动产生商业逻辑。与其他工程不同,我们的方法不需要具体指定设计模型,例如序列图,业务逻辑可以直接由需求模型的运作合同产生。操作合同只包含执行行动的先决条件,以及执行后的条件。此外,所产生的现成代码采用与Java EE和.NET平台相同的多层结构,这些结构是坚固、可缩放的,并且广泛用于企业应用程序开发。最后,对图书馆管理系统的案例研究表明,我们拟议采用的RMC方法的可行性和效率。