摘要
业务逻辑自动生成是代码自动生成领域中一个亟待解决的问题。为了解决这个问题,分析了业务逻辑难于生成的原因,在MDA的基础上引入产生式规则的思想,研究PSM模型到代码的转换过程。提出一种基于产生式规则的建模方法对逻辑中业务规则及业务流程进行建模,并基于产生式系统原理,对代码生成器进行设计与实现。基于本方法实现的代码生成器,实现了业务规则及业务流程模型到代码的转换,使目标代码业务逻辑与数据分离,一定程度上解决了业务逻辑代码自动生成问题。
Generating business logic automatically is an urgent problem in code automatically generated fields. In order to solve the prob- lem of business logic generated automatically, analyze the reason of the difficulty to generate the business logic, and introduce the thought of production rules based on MDA to study the transformation process of PSM to code. Propose a modeling method based on production rules to the business rules and workflow of business logic, and design and implement code generator based on the principle of the produc tion rule systems. Code generator based on this method achieves the transformation of business rules and workflow model to the code, re- alize the target code generation of business logic and data separation, solve the business logic code generated automaticalLy to a certain extent.
出处
《计算机技术与发展》
2012年第11期36-40,共5页
Computer Technology and Development
基金
国家自然科学基金(61174109)
关键词
代码转换
业务逻辑
产生式规则
code conversion
business logic
production rules