CN103744651A - Method for automatically generating business processing model oriented to business requirements - Google Patents
Method for automatically generating business processing model oriented to business requirements Download PDFInfo
- Publication number
- CN103744651A CN103744651A CN201310704510.2A CN201310704510A CN103744651A CN 103744651 A CN103744651 A CN 103744651A CN 201310704510 A CN201310704510 A CN 201310704510A CN 103744651 A CN103744651 A CN 103744651A
- Authority
- CN
- China
- Prior art keywords
- business
- model
- entity
- demand
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method for automatically generating a business processing model oriented to business requirements. The method includes the steps that requirements related to businesses are converted into business entities and business models respectively, wherein the business entities are described by basic grammars, the business models are described by the basic grammars, and the business entities and the business models are mapped; a business field code generation device corresponding to the mapped business models is utilized to automatically convert the corresponding mapped business entities into source codes and front end assemblies required by an application system, and the business processing model oriented to the corresponding business requirements is generated. The defects that in the prior art, manual labor amount is large, development efficiency is low, and product performance is poor can be overcome, and the method for automatically generating the business processing model oriented to the business requirements has the advantages that manual labor amount is small, development efficiency is high, and product performance is good.
Description
Technical field
The present invention relates to field of computer technology, particularly, relate to a kind of business processing model automatic forming method of service-oriented demand.
Background technology
In the solution of traditional software project, development mode programmer must go Object Relation Mapping to work by craft, and the mapping of the software frame of most of situation is unusual poor efficiency.
As shown in Figure 2, programmer need to, according to Business Entity, form the conceptual model of solution; According to data relationship entity, coding, is used programming language to shine upon, and obtains source code again; Finally by machine, generate executable program.
In realizing process of the present invention, inventor finds at least to exist in prior art the defect such as hand labor amount is large, development efficiency is low and properties of product are poor.
Summary of the invention
The object of the invention is to, for the problems referred to above, propose a kind of business processing model automatic forming method of service-oriented demand, to realize, hand labor amount is little, development efficiency is high and the advantage of good product performance.
For achieving the above object, the technical solution used in the present invention is: a kind of business processing model automatic forming method of service-oriented demand, mainly comprises:
A, by the demand with traffic aided, be separately converted to the business model that Business Entity that the pivot grammar of mapping describes and pivot grammar are described;
B, by business scope code generating unit corresponding to business model with mapping, the corresponding service entity that mapping is obtained is converted into the required source code of application system and front end assemblies automatically, generates the business processing model towards corresponding service demand.
Further, described step a, specifically comprises:
Al, by the business scope code generating unit corresponding with business demand, in the storehouse, business scope of systemic presupposition, retrieve corresponding business scope framework;
A2, by business scope code generator device, the configuration of inputting by displaying interface module according to user, automatically generated data persistence code, comprises data entity module and data verification rule module, the code of database access module.
Further, in described step a1, also comprise:
While not retrieving corresponding business scope framework, according to business demand and service basic grammer, in domain model data bank, create business scope framework, and the corresponding relation between domain model and business demand, service basic grammer and domain model three is stored in to storehouse, business scope.
Further, before carrying out described step a2, also comprise:
During automatically generated data persistence code, can monitor database table and have renewal version, relevant information is notified user by control desk.
Further, in described step a2, the mapping relations of entity comprise:
The relation of inclusion of entity and inter-entity; And, the incidence relation of entity and inter-entity.
Further, described step b, specifically comprises:
Bl, according to business demand and business model, in the code generating unit of business scope, retrieve corresponding model rule;
B2, by business scope code generating unit, corresponding domain model is transformed, generate the needed source code of package system and front end assemblies.
Further, in described step b2, also comprise: while not retrieving corresponding model business scope code generating unit, according to business demand and domain model, create corresponding model business scope code generating unit, and the corresponding relation between model business scope code generating unit and business demand, domain model and model analyzing engine three is stored in to storehouse, model business scope.
Further, in described step b, described business scope code generating unit mainly comprises: the domain model Object Relation Mapping rule module based on business model rule, based on business model, present regular domain model proof rule module and the domain model outward appearance rule module based on Business Entity proof rule, wherein:
Described domain model Object Relation Mapping rule module, for being responsible for the Object Relation Mapping rule of definition domain model, and completes the mappings work of object entity;
Described domain model proof rule module, for by reading the Business Entity Properties of Objects that imports into and the attribute data of object, builds corresponding data check result;
Described domain model outward appearance rule module, for by reading the Business Entity Properties of Objects that imports into and the attribute data of object, builds the set of corresponding data display properties.
Further, described domain model Object Relation Mapping rule module, comprises two submodules:
Business Entity structural information submodule, for extracting the structural model of Business Entity object, to dynamically realize the concrete constraint definition of three parts: the mapping constraint of domain model and relational database; The relation of domain model and outward appearance appearance form; The verification constraint that domain model attribute data is processed;
Mapping parameters definition submodule, carries out the parameters of mapping process for defining Business Entity object, mainly comprise: the rule of field mappings, in the rule of general type relationship map and data persistence with the mapping ruler of relation database table.
The business processing model automatic forming method of the service-oriented demand of various embodiments of the present invention, owing to comprising: by the demand with traffic aided, be separately converted to the Business Entity of pivot grammar description and the business model of pivot grammar description of mapping; By business scope code generating unit corresponding to the business model with mapping, the corresponding service entity that mapping is obtained is converted into the required source code of application system and front end assemblies automatically, generates the business processing model towards corresponding service demand; Can automatically complete Object Relation Mapping, data persistence and user interface generates; Thereby can overcome the defect that in prior art, hand labor amount is large, development efficiency is low and properties of product are poor, to realize, hand labor amount is little, development efficiency is high and the advantage of good product performance.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, for explaining the present invention, is not construed as limiting the invention together with embodiments of the present invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the business processing model automatic forming method of service-oriented demand of the present invention;
Fig. 2 is that in traditional software project, development mode programmer has removed the schematic flow sheet of object native place mappings work by craft.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
According to the embodiment of the present invention, as shown in Figure 1, provide a kind of business processing model automatic forming method of service-oriented demand, mainly comprise the following steps:
S1, the Business Entity of pivot grammar description that the demand with traffic aided is converted into mapping and the business model of pivot grammar description; Step S1 specifically comprises:
Al, according to business scope code generating unit, in the storehouse, business scope of system, retrieve corresponding business scope framework; Steps A 1 comprises: while not retrieving corresponding business scope framework, according to business demand and service basic grammer, in domain model data bank, create business scope framework, and the corresponding relation between domain model and business demand, service basic grammer and domain model three is stored in to storehouse, business scope;
A2, the configuration of inputting by displaying interface module according to user according to business scope code generator device, automatically generated data persistence code, comprises data entity module and data verification rule module, the code of database access module;
Before execution step A2, also comprise: during automatically generated data persistence code, can monitor database table and have renewal version, relevant information is notified user by control desk;
In steps A 2, the mapping relations of entity comprise: the relation of inclusion of entity and inter-entity; The incidence relation of entity and inter-entity;
S2, by business scope code generating unit, corresponding Business Entity is converted into the required source code of application system and front end assemblies automatically; Step S2 specifically comprises:
Bl, according to business demand and business model, in the code generating unit of business scope, retrieve corresponding model rule;
B2, by model business scope code generating unit, corresponding domain model is transformed, generate the needed source code of package system and front end assemblies; Step B2 further comprises: while not retrieving corresponding model business scope code generating unit, according to business demand and domain model, create corresponding model business scope code generating unit, and the corresponding relation between model business scope code generating unit and business demand, domain model and model analyzing engine three is stored in to storehouse, model business scope.
Particularly, in the above-described embodiments, business scope code generating unit is divided into three large modules: domain model Object Relation Mapping rule module (Domain Models ORM Rules, DMOR), domain model proof rule module (Domain Models Validation Rules, DMVR) and domain model outward appearance rule module (Domain Models Fa ade Rules, DMFR).Be described as follows:
(i) DMOR:
This module is the responsible Object Relation Mapping rule that defines domain model, and completes the mappings work of object entity, and it comprises two submodules:
(1) Business Entity structural information submodule (Business Entities Structure Information, BESI):
For extracting the structural model of Business Entity object, to dynamically realize the concrete constraint definition of three parts: the mapping constraint of domain model and relational database; The relation of domain model and outward appearance (view) appearance form; The verification constraint that domain model attribute data is processed;
(2) mapping parameters defines submodule (Business Entities Mapper, BEM):
For defining the parameters that Business Entity object carries out mapping process, mainly comprise: the rule of field mappings, in the rule of general type relationship map and data persistence with the mapping ruler of relation database table; Standard Business Entity mapping ruler defined herein is as shown in table 1:
table 1: Business Entity mapping ruler (Table1:Domain Models Relations Rules)
(ii) DMOR:
This module, by reading the Business Entity Properties of Objects (AttributeValidation) that imports into and the attribute data of object, builds corresponding data check result (ValidationResult).For example, the check results set (ValidationItems) of certain object attribute data that framework imports into, the check results of traversing result, as long as be false by a check results, data check failure.Each verification attribute of standard Business Entity class defined herein is as shown in table 2:
table 2: Business Entity verification rule (Table2:Domain Models Validation Rules)
(iii) DMFR:
This module, by reading the Business Entity Properties of Objects (AttributesForDisplay) that imports into and the attribute data of object, builds corresponding data display properties set (FacadeCollections).Each display characteristic rule of standard Business Entity class defined herein is as shown in table 3:
In sum, the business processing model automatic forming method of the service-oriented demand of the various embodiments described above of the present invention, can automatically complete Object Relation Mapping, data persistence and user interface generates, not only improve development efficiency, and execution performance will be higher than main flow software object Hibernates such as Hibernate.
Finally it should be noted that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (9)
1. a business processing model automatic forming method for service-oriented demand, is characterized in that, mainly comprises:
A, by the demand with traffic aided, be separately converted to the business model that Business Entity that the pivot grammar of mapping describes and pivot grammar are described;
B, by business scope code generating unit corresponding to business model with mapping, the corresponding service entity that mapping is obtained is converted into the required source code of application system and front end assemblies automatically, generates the business processing model towards corresponding service demand.
2. the business processing model automatic forming method of service-oriented demand according to claim 1, is characterized in that, described step a, specifically comprises:
Al, by the business scope code generating unit corresponding with business demand, in the storehouse, business scope of systemic presupposition, retrieve corresponding business scope framework;
A2, by business scope code generator device, the configuration of inputting by displaying interface module according to user, automatically generated data persistence code, comprises data entity module and data verification rule module, the code of database access module.
3. the business processing model automatic forming method of service-oriented demand according to claim 2, is characterized in that, in described step a1, also comprises:
While not retrieving corresponding business scope framework, according to business demand and service basic grammer, in domain model data bank, create business scope framework, and the corresponding relation between domain model and business demand, service basic grammer and domain model three is stored in to storehouse, business scope.
4. according to the business processing model automatic forming method of the service-oriented demand described in claim 2 or 3, it is characterized in that, before carrying out described step a2, also comprise:
During automatically generated data persistence code, can monitor database table and have renewal version, relevant information is notified user by control desk.
5. according to the business processing model automatic forming method of the service-oriented demand described in claim 2 or 3, it is characterized in that, in described step a2, the mapping relations of entity comprise:
The relation of inclusion of entity and inter-entity; And, the incidence relation of entity and inter-entity.
6. according to the business processing model automatic forming method of the service-oriented demand described in any one in claim 1-3, it is characterized in that, described step b, specifically comprises:
Bl, according to business demand and business model, in the code generating unit of business scope, retrieve corresponding model rule;
B2, by business scope code generating unit, corresponding domain model is transformed, generate the needed source code of package system and front end assemblies.
7. the business processing model automatic forming method of service-oriented demand according to claim 6, it is characterized in that, in described step b2, also comprise: while not retrieving corresponding model business scope code generating unit, according to business demand and domain model, create corresponding model business scope code generating unit, and the corresponding relation between model business scope code generating unit and business demand, domain model and model analyzing engine three is stored in to storehouse, model business scope.
8. the business processing model automatic forming method of service-oriented demand according to claim 6, it is characterized in that, in described step b, described business scope code generating unit mainly comprises: the domain model Object Relation Mapping rule module based on business model rule, based on business model, present regular domain model proof rule module and the domain model outward appearance rule module based on Business Entity proof rule, wherein:
Described domain model Object Relation Mapping rule module, for being responsible for the Object Relation Mapping rule of definition domain model, and completes the mappings work of object entity;
Described domain model proof rule module, for by reading the Business Entity Properties of Objects that imports into and the attribute data of object, builds corresponding data check result;
Described domain model outward appearance rule module, for by reading the Business Entity Properties of Objects that imports into and the attribute data of object, builds the set of corresponding data display properties.
9. the business processing model automatic forming method of service-oriented demand according to claim 8, is characterized in that, described domain model Object Relation Mapping rule module, comprises two submodules:
Business Entity structural information submodule, for extracting the structural model of Business Entity object, to dynamically realize the concrete constraint definition of three parts: the mapping constraint of domain model and relational database; The relation of domain model and outward appearance appearance form; The verification constraint that domain model attribute data is processed;
Mapping parameters definition submodule, carries out the parameters of mapping process for defining Business Entity object, mainly comprise: the rule of field mappings, in the rule of general type relationship map and data persistence with the mapping ruler of relation database table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310704510.2A CN103744651A (en) | 2013-12-20 | 2013-12-20 | Method for automatically generating business processing model oriented to business requirements |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310704510.2A CN103744651A (en) | 2013-12-20 | 2013-12-20 | Method for automatically generating business processing model oriented to business requirements |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103744651A true CN103744651A (en) | 2014-04-23 |
Family
ID=50501671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310704510.2A Pending CN103744651A (en) | 2013-12-20 | 2013-12-20 | Method for automatically generating business processing model oriented to business requirements |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103744651A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117220A (en) * | 2015-08-14 | 2015-12-02 | 浪潮通用软件有限公司 | Business entity operation management and automatic execution method based on metadata description |
CN106227527A (en) * | 2016-07-19 | 2016-12-14 | 南京国电南自城乡电网自动化工程有限公司 | A kind of human-computer interface automatic based on entity object relatedness generates method |
CN106843818A (en) * | 2015-12-03 | 2017-06-13 | 阿里巴巴集团控股有限公司 | A kind of business model generation method and device |
CN106874014A (en) * | 2017-03-06 | 2017-06-20 | 北京领航里程碑软件技术有限公司 | The three layer identification code generation methods based on model and framework |
CN107122183A (en) * | 2017-04-17 | 2017-09-01 | 上海众开信息科技有限公司 | Service code generation method and device |
CN107704243A (en) * | 2017-10-19 | 2018-02-16 | 用友网络科技股份有限公司 | Construction method and device, the computer equipment and storage medium of front-end interface |
CN109725901A (en) * | 2018-05-31 | 2019-05-07 | 中国平安人寿保险股份有限公司 | Development approach, device, equipment and the computer storage medium of front-end code |
CN111367932A (en) * | 2020-03-06 | 2020-07-03 | 深圳市今天国际物流技术股份有限公司 | Database table single change notification method and device, computer equipment and storage medium |
CN111988157A (en) * | 2019-05-23 | 2020-11-24 | 北京京东尚科信息技术有限公司 | Service system and service processing method |
CN112015403A (en) * | 2020-09-04 | 2020-12-01 | 刘婷婷 | Software design method and system |
CN112433821A (en) * | 2020-12-08 | 2021-03-02 | 新华三大数据技术有限公司 | Method and device for building business model, electronic equipment and medium |
CN116755683A (en) * | 2023-08-14 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070106520A1 (en) * | 2005-10-11 | 2007-05-10 | Akkiraju Ramakalyani T | System and method for conducting dependency analysis of business components |
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
CN101488086A (en) * | 2008-12-23 | 2009-07-22 | 北京中企开源信息技术有限公司 | Software generation method and apparatus based on field model |
CN102841889A (en) * | 2011-06-20 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for achieving efficient database access based on ORM (object relational mapping) architecture |
-
2013
- 2013-12-20 CN CN201310704510.2A patent/CN103744651A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070106520A1 (en) * | 2005-10-11 | 2007-05-10 | Akkiraju Ramakalyani T | System and method for conducting dependency analysis of business components |
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
CN101488086A (en) * | 2008-12-23 | 2009-07-22 | 北京中企开源信息技术有限公司 | Software generation method and apparatus based on field model |
CN102841889A (en) * | 2011-06-20 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for achieving efficient database access based on ORM (object relational mapping) architecture |
Non-Patent Citations (1)
Title |
---|
余剑: "基于DRMIS框架的论文申报系统的设计与实现", 《柳州职业技术学院学报》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117220A (en) * | 2015-08-14 | 2015-12-02 | 浪潮通用软件有限公司 | Business entity operation management and automatic execution method based on metadata description |
CN106843818A (en) * | 2015-12-03 | 2017-06-13 | 阿里巴巴集团控股有限公司 | A kind of business model generation method and device |
CN106227527B (en) * | 2016-07-19 | 2020-03-20 | 国电南京自动化股份有限公司 | Human-computer interface automatic generation method based on entity object relevance |
CN106227527A (en) * | 2016-07-19 | 2016-12-14 | 南京国电南自城乡电网自动化工程有限公司 | A kind of human-computer interface automatic based on entity object relatedness generates method |
CN106874014A (en) * | 2017-03-06 | 2017-06-20 | 北京领航里程碑软件技术有限公司 | The three layer identification code generation methods based on model and framework |
CN106874014B (en) * | 2017-03-06 | 2020-05-22 | 北京领航里程碑软件技术有限公司 | Three-layer code generation method based on model and framework |
CN107122183A (en) * | 2017-04-17 | 2017-09-01 | 上海众开信息科技有限公司 | Service code generation method and device |
CN107704243A (en) * | 2017-10-19 | 2018-02-16 | 用友网络科技股份有限公司 | Construction method and device, the computer equipment and storage medium of front-end interface |
CN109725901A (en) * | 2018-05-31 | 2019-05-07 | 中国平安人寿保险股份有限公司 | Development approach, device, equipment and the computer storage medium of front-end code |
CN109725901B (en) * | 2018-05-31 | 2024-03-29 | 中国平安人寿保险股份有限公司 | Front-end code development method, device, equipment and computer storage medium |
CN111988157A (en) * | 2019-05-23 | 2020-11-24 | 北京京东尚科信息技术有限公司 | Service system and service processing method |
CN111367932A (en) * | 2020-03-06 | 2020-07-03 | 深圳市今天国际物流技术股份有限公司 | Database table single change notification method and device, computer equipment and storage medium |
CN112015403A (en) * | 2020-09-04 | 2020-12-01 | 刘婷婷 | Software design method and system |
CN112015403B (en) * | 2020-09-04 | 2022-05-24 | 刘婷婷 | Software design method and system |
CN112433821A (en) * | 2020-12-08 | 2021-03-02 | 新华三大数据技术有限公司 | Method and device for building business model, electronic equipment and medium |
CN112433821B (en) * | 2020-12-08 | 2022-07-29 | 新华三大数据技术有限公司 | Method and device for building business model, electronic equipment and medium |
CN116755683A (en) * | 2023-08-14 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
CN116755683B (en) * | 2023-08-14 | 2023-11-14 | 腾讯科技(深圳)有限公司 | Data processing method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103744651A (en) | Method for automatically generating business processing model oriented to business requirements | |
US10127279B2 (en) | Eigenvalue-based data query | |
CN105446966B (en) | The method and apparatus that production Methods data are converted to the mapping ruler of RDF format data | |
CN110032369A (en) | A kind of code automatic generation method, device and medium | |
CN109491989B (en) | Data processing method and device, electronic equipment and storage medium | |
CN101859303A (en) | Metadata management method and management system | |
CN108984155A (en) | Flow chart of data processing setting method and device | |
CN104536987B (en) | A kind of method and device for inquiring about data | |
CN101021874A (en) | Method and apparatus for optimizing request to poll SQL | |
CN104765731A (en) | Database query optimization method and equipment | |
CN109299074B (en) | Data verification method and system based on templated database view | |
CN111400297A (en) | Mass data quality verification method based on Hadoop | |
WO2021253641A1 (en) | Shading language translation method | |
CN108108483B (en) | Method, device and system for intercepting DAO layer and checking SQL based on SpringAop | |
US9104724B2 (en) | Dynamic bridging of application and data servers | |
CN106844369B (en) | Objectification SQL sentence construction method and apparatus | |
CN113127478B (en) | Analysis method and device for data endogenous blood edge relationship and computer equipment | |
CN102426612A (en) | Condition object query method and system | |
CN106383701A (en) | Common multi-protocol data access interface technology-based data service system | |
CN106126564A (en) | A kind of method rendered based on dynamic template language | |
CN112860730A (en) | SQL statement processing method and device, electronic equipment and readable storage medium | |
CN106777278B (en) | Spark-based data processing method and device | |
CN108255852B (en) | SQL execution method and device | |
US20140309970A1 (en) | Managing a model having an object cycle | |
CN113467785B (en) | SQL translation method and system for mimicry database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140423 |
|
RJ01 | Rejection of invention patent application after publication |