CN108427554B - A table-driven cloud model software automatic construction method and system - Google Patents
A table-driven cloud model software automatic construction method and system Download PDFInfo
- Publication number
- CN108427554B CN108427554B CN201810455972.8A CN201810455972A CN108427554B CN 108427554 B CN108427554 B CN 108427554B CN 201810455972 A CN201810455972 A CN 201810455972A CN 108427554 B CN108427554 B CN 108427554B
- Authority
- CN
- China
- Prior art keywords
- information
- user
- software
- web
- model
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/312—List processing, e.g. LISP programming language
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical field
本发明涉及软件工程技术领域,具体涉及到一种表驱动的云模式软件自动构造方法及系统。The invention relates to the technical field of software engineering, and specifically to a table-driven cloud model software automatic construction method and system.
背景技术Background technique
随着互联网及云计算技术的高速发展,信息和数据收集、存储、查询等方面的需求日益成为信息社会的常态需求,无论是企业级应用开发者还是非企业级应用开发者,设计开发出针对特定需求的Web软件系统是一个十分普遍的客观需求。传统模式下软件从设计到生产通常都要经历相对繁琐的开发过程,包括需求分析、软件设计、程序编写、测试验证与系统部署等环节。并且每个用户所给定的需求也是不同的,如果针对每种需求都要经历这样一个繁杂的软件开发流程显然是非常耗费时间和资源的。然而,一般信息系统软件围绕数据的采集、存储、增删改查等操作具有共性特征,并且软件即服务云模式也为软件即时部署提供了技术可行性。因此,本发明跨越传统Web软件开发的编程和部署环节,通过抽取构造一般信息系统软件的共性特征,提供一种满足多种用户特定需求的Web软件系统自动构造方法,以大大节省提高软件开发编程成本;并将这一发明方法嵌入云环境,以提高软件部署发布的时效性。With the rapid development of the Internet and cloud computing technology, the needs for information and data collection, storage, and query have increasingly become normal needs in the information society. Whether enterprise-level application developers or non-enterprise-level application developers, they have designed and developed Web software systems with specific needs are a very common objective need. Under the traditional model, software usually goes through a relatively tedious development process from design to production, including requirements analysis, software design, program writing, testing and verification, and system deployment. Moreover, the needs given by each user are also different. If you have to go through such a complicated software development process for each need, it will obviously be very time-consuming and resource-consuming. However, general information system software has common characteristics around data collection, storage, addition, deletion, modification, and other operations, and the software-as-a-service cloud model also provides technical feasibility for real-time deployment of software. Therefore, the present invention transcends the programming and deployment links of traditional Web software development, and provides an automatic construction method for Web software systems that meets the specific needs of multiple users by extracting and constructing common features of general information system software, thereby greatly saving and improving software development and programming. cost; and embed this invention method into the cloud environment to improve the timeliness of software deployment and release.
发明内容Contents of the invention
本发明的目的在于克服现有技术中的缺点与不足,提供一种表驱动的云模式软件自动构造方法,通过一个Web软件自动构造框架(WSACF,简称Web软件框架)自动读取、分析用户填写的软件系统需求表,然后根据读取的需求信息构造Web软件系统,并注入相应的Web软件框架所处云环境中,即可供用户使用,为用户省去耗时的编程开发与部署工作而只需专注于定义系统需求即可快速高效的构造出满足需求的Web软件系统,大大提高软件生产效率。The purpose of the present invention is to overcome the shortcomings and deficiencies in the prior art and provide a table-driven automatic cloud model software construction method that automatically reads and analyzes user fill-in through a Web software automatic construction framework (WSACF, referred to as Web software framework) software system requirements table, and then construct a Web software system based on the read demand information, and inject the corresponding Web software framework into the cloud environment where it is located, which is available for users to save time-consuming programming development and deployment work. You only need to focus on defining system requirements to quickly and efficiently construct a Web software system that meets the needs, greatly improving software production efficiency.
本发明的另一目的在于运用上述的表驱动的云模式软件自动构造方法,提供一种表驱动的云模式软件自动构造系统。Another object of the present invention is to provide a table-driven cloud model software automatic construction system using the above-mentioned table-driven cloud model software automatic construction method.
为实现以上目的,本发明采取如下技术方案:In order to achieve the above objectives, the present invention adopts the following technical solutions:
一种表驱动的云模式软件自动构造方法,包括下述步骤:A method for automatically constructing table-driven cloud model software, including the following steps:
S1、用户根据Web软件框架提供或约定的表单格式,填写软件系统需求信息,生成软件系统信息表;然后将填写完成的软件系统需求表在线或离线提交至Web软件框架中;所述软件系统需求信息包括:系统管理员信息、用户组信息、用户信息、以及模型信息;所述Web软件框架是一个部署在Web服务器上的应用;S1. The user fills in the software system requirement information according to the form format provided or agreed upon by the Web software framework, and generates a software system information table; then submits the completed software system requirement form to the Web software framework online or offline; the software system requirements The information includes: system administrator information, user group information, user information, and model information; the Web software framework is an application deployed on the Web server;
S2、所述Web软件框架通过数据获取服务器接收用户指定的所述软件系统需求表的存储路径,并根据存储路径,获取所述软件系统需求表,然后Web软件框架对获取的软件系统需求表进行遍历,读取软件系统需求表所记载的各类信息,并将读取的各项软件系统需求信息传输至数据分析服务器;S2. The Web software framework receives the storage path of the software system requirement table specified by the user through the data acquisition server, and obtains the software system requirement table according to the storage path, and then the Web software framework performs operations on the obtained software system requirement table. Traverse, read various information recorded in the software system requirement table, and transmit the read various software system requirement information to the data analysis server;
S3、所述Web软件框架通过数据分析服务器对软件系统需求表中的各项软件系统需求信息进行数据类型及格式校验,判断是否满足软件系统需求表的格式填写要求;若校验不通过,则提示用户格式有误请重新上传软件系统需求表,即重复步骤S1、步骤S2和当前步骤;若校验通过,进行下一步操作;S3. The Web software framework uses the data analysis server to verify the data type and format of each software system requirement information in the software system requirement table to determine whether it meets the format filling requirements of the software system requirement table; if the verification fails, It prompts the user that the format is incorrect, please re-upload the software system requirements table, that is, repeat step S1, step S2 and the current step; if the verification is passed, proceed to the next step;
S4、Web软件框架根据校验通过的软件系统需求表的各项信息构造Web软件系统,并注入Web软件框架所处云环境中,然后对所构造的Web软件系统进行使用;S4. The Web software framework constructs a Web software system based on the information in the verified software system requirement table, injects it into the cloud environment where the Web software framework is located, and then uses the constructed Web software system;
S41、设计Web软件框架的底层代码类,所述底层代码类用于实现Web软件框架内部自动化构造Web软件系统;S41. Design the underlying code class of the Web software framework. The underlying code class is used to automatically construct the Web software system within the Web software framework;
S42、Web软件框架通过底层代码类自动化构造Web软件系统,其外部活动过程为:Web软件框架根据校验通过的软件系统需求表的管理员信息注册创建一个软件系统,然后再依次判断软件系统需求表中是否存在用户组信息、用户信息、模型信息或模型内结构信息,若存在,则Web软件框架读取软件系统需求表中对应存在的信息,并在创建的软件系统中生成用户组、用户、模型、或模型字段;对于软件系统需求表中存在多个模型情况,Web软件框架重复读取模型信息,直到读取完所有数量的模型,生成最终的Web软件系统;S42. The Web software framework automatically constructs a Web software system through underlying code classes. Its external activity process is: the Web software framework registers and creates a software system based on the administrator information of the verified software system requirement table, and then determines the software system requirements in turn. Whether there is user group information, user information, model information or structure information within the model in the table? If so, the Web software framework reads the corresponding information that exists in the software system requirements table and generates user groups and users in the created software system. , model, or model field; when there are multiple models in the software system requirement table, the Web software framework repeatedly reads the model information until all the number of models have been read, and the final Web software system is generated;
S43、通过软件注入服务器将步骤S42获得的Web软件系统注入Web软件框架,并通过Web软件框架在云端自动部署和发布,供用户访问使用;S43. Inject the Web software system obtained in step S42 into the Web software framework through the software injection server, and automatically deploy and publish it in the cloud through the Web software framework for users to access and use;
S44、当用户要在所创建的Web软件系统批量注入数据时,用户填写数据记录交换表,所述数据记录交换表包括模型字段信息和数据记录信息,然后提交至Web软件框架,所述Web软件框架对数据记录交换表的信息进行读取,然后对读取后的信息进行格式校验,对于检验通过的数据交换记录表,Web软件框架读取其中的模型字段信息,并根据模型字段信息确定所要进行数据交换的模型,然后将数据记录信息注入该模型中,即完成数据注入操作。S44. When the user wants to batch inject data into the created Web software system, the user fills in the data record exchange form, which includes model field information and data record information, and then submits it to the Web software framework. The Web software The framework reads the information in the data record exchange table, and then performs format verification on the read information. For the data exchange record table that passes the verification, the Web software framework reads the model field information and determines the information based on the model field information. The model to be exchanged for data is then injected into the model with data record information, that is, the data injection operation is completed.
作为优选的技术方案,步骤S1中,所述软件系统需求信息包括:系统管理员信息、用户组信息、用户信息、以及模型信息,具体如下:As a preferred technical solution, in step S1, the software system requirement information includes: system administrator information, user group information, user information, and model information, specifically as follows:
所述系统管理员信息包括:系统管理员ID、系统管理员密码、以及系统标题;The system administrator information includes: system administrator ID, system administrator password, and system title;
所述用户组信息为用户组ID,可根据需求自定义多个用户组;The user group information is the user group ID, and multiple user groups can be customized according to needs;
所述用户信息包括:用户ID、用户名、用户密码、以及用户所属组ID;The user information includes: user ID, user name, user password, and group ID to which the user belongs;
所述模型信息,可根据需求自定义多个模型,所包括的信息具体有:用户所属组的组内用户读写权限、其他用户读写权限、模型名称、模型录入员ID、所属组ID、模型字段类型、模型字段名、字段值是否允许空、缺省值、以及备选值;其中所述用户所属组的组内用户读写权限和他用户读写权限包括:可读可写、可读不可写、以及不可读不可写;所述模型录入员ID为用户信息中用户ID所包含;所述所属组ID为用户组中用户组ID所包含;所述模型字段类型,其取值包括:Text、Float、Integer、Link、Date、Datetime、以及Boolean;所述字段值是否允许空,其取值包括:TRUE、FALSE,其中TRUE表示允许为空,FALSE表示不允许为空;The model information can be customized according to the needs of multiple models. The information included specifically includes: the read and write permissions of users in the group to which the user belongs, the read and write permissions of other users, model name, model entry person ID, group ID, Model field type, model field name, whether the field value is allowed to be empty, default value, and alternative value; the read and write permissions of users in the group to which the user belongs and the read and write permissions of other users include: readable, writable, and Read but not write, and neither read nor write; the model entry person ID is included in the user ID in the user information; the group ID is included in the user group ID in the user group; the model field type, its value includes : Text, Float, Integer, Link, Date, Datetime, and Boolean; whether the field value is allowed to be empty, its values include: TRUE, FALSE, where TRUE means that it is allowed to be empty, and FALSE means that it is not allowed to be empty;
所述软件系统需求表的提交方式包括:在线提交和离线提交;所述在线提交:用户根据Web软件框架提供的Web表单格式,在线填写软件系统需求信息并提交到该Web软件框架;所述离线提交:用户根据Web软件框架约定的离线表单格式模版,离线填写软件系统需求信息并以文件上传方式提交到Web软件框架。The submission methods of the software system requirement form include: online submission and offline submission; the online submission: the user fills in the software system requirement information online according to the Web form format provided by the Web software framework and submits it to the Web software framework; the offline submission Submit: The user fills in the software system requirement information offline according to the offline form format template agreed by the Web software framework and submits it to the Web software framework through file upload.
作为优选的技术方案,步骤S1中,所述Web软件框架是一个部署在Web服务器上的应用,带有系统显示界面;所述系统显示界面包括:系统管理员界面和用户界面;As a preferred technical solution, in step S1, the Web software framework is an application deployed on a Web server with a system display interface; the system display interface includes: a system administrator interface and a user interface;
所述系统管理员界面包括用户管理、用户组管理、以及模型管理;所述用户管理用于对所要创建的Web软件系统的用户信息进行管理,管理功能包括增加用户、删除用户、为用户增加用户组信息、以及为用户删除用户组信息;所述用户组管理用于对所要创建的Web软件系统的用户组信息进行管理,管理功能包括增加用户组、删除用户组、为用户组增加用户信息、以及为用户组删除用户信息;所述模型管理用于对所要创建的Web软件系统的模型信息进行管理,管理功能包括增加模型信息、删除模型信息、增加模型字段信息、删除模型字段信息、修改模型字段信息、以及针对模型对不同的用户组分配不同的访问权限;The system administrator interface includes user management, user group management, and model management; the user management is used to manage user information of the Web software system to be created, and the management functions include adding users, deleting users, and adding users to users. group information, and delete user group information for users; the user group management is used to manage the user group information of the Web software system to be created, and the management functions include adding user groups, deleting user groups, adding user information to user groups, And delete user information for the user group; the model management is used to manage the model information of the Web software system to be created, and the management functions include adding model information, deleting model information, adding model field information, deleting model field information, and modifying the model. Field information, and assigning different access rights to different user groups for the model;
所述用户界面包括数据管理、数据统计、导入和导出Excel表及其他格式表、以及高级搜索;所述数据管理用于对所要创建的Web软件系统数据表的记录进行管理,管理功能包括增加数据记录、删除数据记录、修改数据记录、以及获取所有数据记录;所述数据统计用于对所要创建的Web软件系统的数据表记录进行统计,统计功能包括可针对数据表整型字段进行记录数统计、最大值统计、最小值统计、以及平均值统计;所述导入和导出Excel表及其他格式表用于将Excel表及其他格式表中的数据导入至所创建的Web软件系统的相应表中,并可将Web软件系统的表中的数据导出至Excel表及其他格式表中;所述高级搜索用于对Excel表及其他格式表的多个字段进行多种逻辑组合搜索,查询出满足搜索条件的记录信息。The user interface includes data management, data statistics, import and export of Excel tables and other format tables, and advanced search; the data management is used to manage the records of the Web software system data table to be created, and the management functions include adding data Record, delete data records, modify data records, and obtain all data records; the data statistics are used to count the data table records of the Web software system to be created, and the statistical functions include recording number statistics for the integer fields of the data table , maximum value statistics, minimum value statistics, and average value statistics; the import and export of Excel tables and other format tables are used to import data in Excel tables and other format tables into corresponding tables of the created Web software system, And the data in the tables of the Web software system can be exported to Excel tables and other format tables; the advanced search is used to conduct a variety of logical combination searches on multiple fields of Excel tables and other format tables, and query the results that meet the search conditions. record information.
作为优选的技术方案,步骤S2中,Web软件框架自动读取软件系统需求表中的各项系统需求信息,其自动读取单元包括软件系统需求表遍历单元、系统管理员信息读取单元、用户组信息读取单元、用户信息读取单元、以及模型信息读取单元;As a preferred technical solution, in step S2, the Web software framework automatically reads various system requirement information in the software system requirement table. Its automatic reading unit includes a software system requirement table traversal unit, a system administrator information reading unit, and a user Group information reading unit, user information reading unit, and model information reading unit;
所述软件系统需求表遍历单元用于对软件系统需求表进行遍历;The software system requirement table traversal unit is used to traverse the software system requirement table;
所述系统管理员信息读取单元用于在遍历系统管理员信息时,读取系统管理员ID、系统管理员密码、以及系统标题;The system administrator information reading unit is used to read the system administrator ID, system administrator password, and system title when traversing the system administrator information;
所述用户组信息读取单元用于,用于在遍历用户组信息时,读取用户组ID信息;The user group information reading unit is used to read user group ID information when traversing user group information;
所述用户信息读取单元,用于在遍历用户信息时,读取用户ID、用户名、用户密码、以及用户所属组ID,其中所述用户所属组ID为用户组信息中包含的用户组ID;The user information reading unit is used to read the user ID, user name, user password, and user group ID when traversing user information, where the user group ID is the user group ID contained in the user group information. ;
所述模型信息读取单元,用于在遍历模型信息时,读取用户所属组的组内用户读写权限、其他用户读写权限、模型名称、模型录入员ID、用户所属组ID、字段类型、字段名、字段值是否允许为空、缺省值、以及备选值。The model information reading unit is used to read the read and write permissions of users in the group to which the user belongs, the read and write permissions of other users, the model name, the ID of the model entry person, the ID of the group to which the user belongs, and the field type when traversing the model information. , field name, whether the field value is allowed to be empty, default value, and alternative value.
作为优选的技术方案,步骤S3中,Web软件框架对软件系统需求表中的各项软件系统需求信息进行数据类型及格式校验,具体是对模型信息中的用户所属组的组内用户读写权限、其他用户读写权限、模型字段类型、以及字段值是否允许空的取值是否满足填写要求;若用户所属组项不为空,则判断该项所填值是否包含于软件系统需求表中的用户组信息。As a preferred technical solution, in step S3, the Web software framework performs data type and format verification on each software system requirement information in the software system requirement table. Specifically, it reads and writes the users in the group to which the user in the model information belongs. Permissions, read and write permissions of other users, model field types, and whether the field value allows empty values satisfy the filling requirements; if the group item to which the user belongs is not empty, determine whether the value filled in the item is included in the software system requirements table user group information.
作为优选的技术方案,步骤S41中,Web软件框架通过底层代码类自动化构造Web软件系统,所述底层代码类涉及5个类,4个接口,其中,5个类包括:需求表读取类Read_Demand、用户组管理类Manage_Group、用户管理类Manage_User、模型管理类Manage_Schema、以及数据管理类Manage_Data;4个接口,包括:用户组管理接口GManage_Group、用户管理接口GManage_User、模型管理接口GManage_Schema、以及数据管理接口GManage_Data;通过所述底层代码类自动化构造Web软件系统,具体包括下述步骤:As a preferred technical solution, in step S41, the Web software framework automatically constructs a Web software system through underlying code classes. The underlying code classes involve 5 classes and 4 interfaces. Among them, the 5 classes include: demand table reading class Read_Demand , user group management class Manage_Group, user management class Manage_User, model management class Manage_Schema, and data management class Manage_Data; 4 interfaces, including: user group management interface GManage_Group, user management interface GManage_User, model management interface GManage_Schema, and data management interface GManage_Data ; Automatically constructing a Web software system through the underlying code class, specifically including the following steps:
(1)、通过需求表读取类Read_Demand中用来处理系统管理员信息的API读取软件系统需求表中的系统管理员板块,遍历其单元格,根据系统管理员ID、系统管理员密码和系统名称在Web软件框架的超级管理员权限下注册软件系统,并在该Web软件框架的底层数据库中创建软件系统相应的数据库实体,同时在该数据库下创建4个Collection,分别为用户组group、用户user、模型schema、数据data;其中所述超级管理员是Web软件框架的最高权限管理员,用于接收用户设定的管理员信息并在Web框架中注册软件系统;所述Web软件框架的底层数据库用于Web软件框架存储数据;(1) Read the system administrator section in the software system demand table through the API used to process system administrator information in the demand table reading class Read_Demand, traverse its cells, and based on the system administrator ID, system administrator password and The system name registers the software system under the super administrator authority of the Web software framework, and creates the corresponding database entity of the software system in the underlying database of the Web software framework. At the same time, four Collections are created under the database, namely user group group, User user, model schema, data data; wherein the super administrator is the highest authority administrator of the Web software framework, used to receive the administrator information set by the user and register the software system in the Web framework; the Web software framework The underlying database is used by the Web software framework to store data;
(2)、通过需求表读取类Read_Demand中用来处理用户组信息的API读取软件系统需求表中的用户组信息,遍历其填写的用户组ID信息单元格,根据得到的用户组ID信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的用户组group集合中;(2) Read the user group information in the software system demand table through the API used to process user group information in the demand table reading class Read_Demand, traverse the filled in user group ID information cells, and based on the obtained user group ID information Generate a string in Json format and insert it into the user group collection of the database entity created in step (1);
(3)、通过需求表读取类Read_Demand中用来处理用户信息的API读取软件系统需求表中的用户信息,遍历其填写的用户信息,按行读取并遍历每行的单元格,根据得到的所有用户信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的用户user集合中;(3) Read the user information in the software system demand table through the API used to process user information in the demand table reading class Read_Demand, traverse the user information filled in, read row by row and traverse the cells of each row, according to All the user information obtained is generated as a string in Json format and inserted into the user collection of the database entity created in step (1);
(4)、通过需求表读取类Read_Demand中用来处理模型信息的API读取系统需求表的模型信息,遍历其填写的模型信息单元格,根据模型信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的模型schema集合中;(4) Read the model information of the system demand table through the API used to process model information in the demand table reading class Read_Demand, traverse the filled model information cells, generate a Json format string based on the model information, and convert it Insert into the model schema collection of the database entity created in step (1);
(5)、通过用户组管理类Manage_Group对底层数据库中数据库实体的用户组group集合中的用户组数据进行操作,并将操作结果返回给Web软件框架的系统显示界面,所述用户组管理类Manage_Group实现Web软件框架中定义的用户组管理接口GManage_Group;(5) Operate the user group data in the user group group collection of the database entity in the underlying database through the user group management class Manage_Group, and return the operation results to the system display interface of the Web software framework. The user group management class Manage_Group Implement the user group management interface GManage_Group defined in the Web software framework;
(6)、通过用户管理类Manage_User对底层数据库中数据库实体的用户user集合中的用户数据进行操作,并将操作结果返回给Web软件框架的系统显示界面;(6) Operate the user data in the user collection of the database entity in the underlying database through the user management class Manage_User, and return the operation results to the system display interface of the Web software framework;
(7)、通过模型管理类Manage_Schema对底层数据库中数据库实体的schema集合中的模型数据进行操作,并将结果返回给Web软件框架的界面,所述模型管理类Manage_Schema实现Web软件框架中定义的模型管理接口GManage_Schema;(7) Operate the model data in the schema collection of the database entities in the underlying database through the model management class Manage_Schema, and return the results to the interface of the Web software framework. The model management class Manage_Schema implements the model defined in the Web software framework. Management interface GManage_Schema;
(8)、通过数据管理类Manage_Data对底层数据库中数据库实体的data集合中的数据记录进行操作,并将结果返回给Web软件框架的系统显示界面,所述数据管理类Manage_Data实现了Web软件框架中定义的数据管理接口GManage_Data。(8) Operate the data records in the data collection of the database entity in the underlying database through the data management class Manage_Data, and return the results to the system display interface of the Web software framework. The data management class Manage_Data implements the Defined data management interface GManage_Data.
作为优选的技术方案,在步骤S42中,Web软件框架通过底层代码类自动化构造Web软件系统,其外部活动的具体过程如下:As a preferred technical solution, in step S42, the Web software framework automatically constructs a Web software system through underlying code classes. The specific process of its external activities is as follows:
S421、Web软件框架读取校验通过的软件系统需求表中的管理员信息,所述管理员信息包括系统管理员用户名、系统管理员密码、以及创建软件系统名称的信息;根据所读取的管理员信息,注册创建一个软件系统;S421. The Web software framework reads the administrator information in the software system requirement table that has passed the verification. The administrator information includes the system administrator user name, the system administrator password, and the information of the created software system name; according to the read Administrator information, register to create a software system;
S422、Web软件框架判断软件系统需求表是否存在用户组信息,若软件系统需求表中存在用户组信息,所述用户组信息为用户组ID,则根据所读取的用户组ID在步骤S411创建的软件系统中生成用户组;若软件系统需求表中不存在用户组信息,则进行下一步操作;S422. The Web software framework determines whether user group information exists in the software system requirement table. If there is user group information in the software system requirement table, and the user group information is the user group ID, then it is created in step S411 based on the read user group ID. Generate user groups in the software system; if the user group information does not exist in the software system requirements table, proceed to the next step;
S423、Web软件框架判断该软件系统需求表是否存在用户信息,若软件系统需求表中不存在用户信息,所述用户信息包括用户ID、用户名、用户密码、以及用户所属组,根据所读取的用户信息在在步骤S411创建的软件系统中生成用户;若软件系统需求表中存在用户信息,则进行下一步操作;S423. The Web software framework determines whether user information exists in the software system requirement table. If there is no user information in the software system requirement table, the user information includes user ID, user name, user password, and the group to which the user belongs. According to the read The user information is generated in the software system created in step S411; if user information exists in the software system requirement table, proceed to the next step;
S424、Web软件框架判断该软件系统需求表是否存在模型信息,若软件系统需求表存在模型信息,则读取软件系统需求表中的模型数量,并赋值当前计数值为0,然后读取模型信息,即模型名称、模型录入员、所属组ID、以及用户所属组的组内用户读写权限信息,并根据所读取的模型信息在在步骤S411创建的软件系统中创建指定模型;然后再判断模型内是否存在结构信息,若模型内存在结构信息,则读取模型内结构信息,即模型内结构字段名称、字段类型、字段值是否允许为空、缺省值、以及备选值,并根据所读取的模型内结构信息在已创建的指定模型内创建字段,同时当前模型数量计数值+1,然后判断当前计数是否小于模型数量,若当前计数小于模型数量,则继续读取下一个模型信息,重复该步骤操作;若当前计数大于模型数量,则Web软件框架完成软件系统的自构造,生成Web软件系统。S424. The Web software framework determines whether model information exists in the software system requirement table. If model information exists in the software system requirement table, read the number of models in the software system requirement table, assign the current count value to 0, and then read the model information. , that is, the model name, model entry person, group ID, and user read and write permission information of the group to which the user belongs, and create the specified model in the software system created in step S411 based on the read model information; and then make a judgment Whether there is structural information in the model. If there is structural information in the model, read the structural information in the model, that is, the structure field name, field type, whether the field value is allowed to be empty, the default value, and the alternative value, and based on The read structural information in the model creates fields in the specified model that has been created. At the same time, the current model number count value is +1, and then it is judged whether the current count is less than the number of models. If the current count is less than the number of models, continue to read the next model. information, repeat this step; if the current count is greater than the number of models, the Web software framework completes the self-construction of the software system and generates a Web software system.
作为优选的技术方案,步骤S5中,所述用户填写数据记录交换表并提交至Web软件框架,具体如下:As a preferred technical solution, in step S5, the user fills in the data record exchange form and submits it to the Web software framework, as follows:
所述数据交换记录表中的信息包括:模型字段信息和数据记录;所述模型字段信息是用户根据需求设置所要进行数据记录交换的模型的所有字段名;所述数据记录是用户根据需求添加需要注入到模型中的所有数据记录信息;The information in the data exchange record table includes: model field information and data records; the model field information is all the field names of the model that the user sets according to the needs for data record exchange; the data records are the needs added by the user according to the needs All data record information injected into the model;
所述数据交换记录表的提交方式包括:在线提交和离线提交;所述在线提交:当用户根据Web软件框架构造出的Web软件系统,通过所述Web软件系统提供的数据录入Web页面,在线录入数据交换记录表中的信息并提交到该Web软件系统;所述离线提交:当用户根据Web软件生成框架构造出的Web软件系统,通过所述Web软件系统提供的数据记录交换表模版格式,离线录入模型字段信息和数据记录信息并以文件上传方式提交到该Web软件系统。The submission methods of the data exchange record table include: online submission and offline submission; the online submission: when the user enters the Web software system constructed according to the Web software framework and enters the data provided by the Web software system into the Web page, the online entry is The information in the data exchange record table is submitted to the Web software system; the offline submission: when the user constructs a Web software system based on the Web software generation framework, the data record exchange table template format provided by the Web software system is used offline. Enter the model field information and data record information and submit it to the Web software system through file upload.
一种表驱动的云模式软件自动构造方法的软件自动构造系统,包括客户端、数据获取模块、数据分析模块、软件构造模块、软件注入模块、以及Web服务器;所述客户端用于用户填写软件系统需求表并提交至数据获取模块,所述数据获取模块通过数据获取服务器遍历软件系统需求表,并对软件系统需求表所记载的信息进行分类读取,然后将分类读取后的各项软件系统需求信息传输至数据分析模块;所述数据分析模块通过数据分析服务器对获取的各项软件系统需求信息进行格式分析校验,若格式校验错误,则提醒用户重新填写软件系统需求表,若格式校验正确,则将格式校验正确的各项软件系统需求信息传输至软件构造模块;所述软件构造模块根据格式校验正确的各项软件系统需求信息,并通过软件构建服务器,自动构造出与该信息匹配的Web软件系统,然后将所述的Web软件系统传输至软件注入模块;所述软件注入模块通过软件注入服务器将Web软件系统注入Web软件框架,并通过Web软件框架将Web软件系统部署在Web服务器上,供用户访问使用;所述Web软件框架是一个用于自动构造软件,并部署在Web服务器上的应用,带有系统显示界面。A software automatic construction system for a table-driven cloud model software automatic construction method, including a client, a data acquisition module, a data analysis module, a software construction module, a software injection module, and a Web server; the client is used for users to fill in software The system requirement table is submitted to the data acquisition module. The data acquisition module traverses the software system requirement table through the data acquisition server, classifies and reads the information recorded in the software system requirement table, and then classifies each software item after reading it. The system requirement information is transmitted to the data analysis module; the data analysis module performs format analysis and verification on the obtained software system requirement information through the data analysis server. If the format verification is incorrect, the user is reminded to refill the software system requirement form. If If the format verification is correct, the software system requirement information with correct format verification will be transmitted to the software construction module; the software construction module will automatically construct the software system requirement information with correct format verification based on the software construction server. Output the Web software system that matches the information, and then transfer the Web software system to the software injection module; the software injection module injects the Web software system into the Web software framework through the software injection server, and injects the Web software through the Web software framework The system is deployed on a Web server for users to access and use; the Web software framework is an application used to automatically construct software and is deployed on the Web server, with a system display interface.
作为优选的技术方案,所述客户端、数据获取服务器、数据分析服务器、软件构造服务器、软件注入服务器、以及Web服务器均是采用PC电脑,所述客户端与Web服务器之间采用Http通信方式,通信协议采用TCP协议;其余服务器间均采用Socket通信方式,通信协议采用TCP协议。As a preferred technical solution, the client, data acquisition server, data analysis server, software construction server, software injection server, and Web server are all PC computers, and HTTP communication is used between the client and the Web server. The communication protocol adopts TCP protocol; other servers adopt Socket communication method, and the communication protocol adopts TCP protocol.
本发明相对于现有技术具有如下的优点和效果:The present invention has the following advantages and effects compared with the prior art:
本发明所提出的一种表驱动的云模式软件系统自动构造方法,不仅简化传统模式下繁杂的软件开发流程,并支持多租户软件即服务云模式,为用户省去了耗时的编程开发工作,使得用户只需专注于定义系统需求即可快速高效的构造出满足需求的Web软件系统,大大提高了软件开发效率,同时为企业级、非企业级用户定制满足自身需求的信息管理系统提供便利性。The table-driven cloud mode software system automatic construction method proposed by the present invention not only simplifies the complicated software development process in the traditional mode, but also supports the multi-tenant software-as-a-service cloud mode, saving users time-consuming programming and development work. , so that users only need to focus on defining system requirements to quickly and efficiently construct a Web software system that meets their needs, which greatly improves software development efficiency and provides convenience for enterprise-level and non-enterprise-level users to customize information management systems that meet their own needs. sex.
附图说明Description of the drawings
图1为实施例1的表驱动的云模式软件系统自动构造方法的流程图;Figure 1 is a flow chart of the automatic construction method of the table-driven cloud model software system in Embodiment 1;
图2为实施例1的表驱动的云模式软件系统自动构造方法的具体工作流程图;Figure 2 is a specific workflow diagram of the automatic construction method of the table-driven cloud model software system in Embodiment 1;
图3(a)-图3(c)分别为本应用实例的大学城汽车4S服务管理信息系统的系统管理员界面下的用户管理界面、用户组管理界面、以及模型管理界面;Figure 3(a)-Figure 3(c) respectively show the user management interface, user group management interface, and model management interface under the system administrator interface of the University Town Automobile 4S Service Management Information System in this application example;
图4为本应用实例的大学城汽车4S服务管理信息系统的普通用户界面下的系统界面;Figure 4 shows the system interface under the ordinary user interface of the University Town Automobile 4S Service Management Information System in this application example;
图5为实施例1的表驱动的自动化注入数据记录的流程图;Figure 5 is a flow chart of table-driven automatic injection of data records in Embodiment 1;
图6为实施例1的自动化生成的Web软件系统的超级管理员模块用例图;Figure 6 is a use case diagram of the super administrator module of the automatically generated Web software system in Embodiment 1;
图7为实施例1的自动化生成的Web软件系统的系统管理员模块用例图;Figure 7 is a use case diagram of the system administrator module of the automatically generated Web software system in Embodiment 1;
图8为实施例1的自动化生成的Web软件系统的用户模块用例图;Figure 8 is a use case diagram of the user module of the automatically generated Web software system in Embodiment 1;
图9为实施例1的自动化构造流程的UML类图;Figure 9 is a UML class diagram of the automated construction process of Embodiment 1;
图10为实施例1中利用表驱动的云模式软件系统自动构造方法构造的Web软件系统应用实例活动图;Figure 10 is an activity diagram of a Web software system application example constructed using the table-driven cloud model software system automatic construction method in Embodiment 1;
图11为实施例1中利用表驱动的云模式软件系统自动构造方法构造的Web软件系统应用实例状态图;Figure 11 is a state diagram of a Web software system application example constructed using the table-driven cloud model software system automatic construction method in Embodiment 1;
图12为实施例2的表驱动的云模式软件系统自动构造系统。Figure 12 is a table-driven cloud model software system automatic construction system in Embodiment 2.
在上述附图的文字描述中,系统需求表即表示软件系统需求表。In the text description of the above drawings, the system requirement table refers to the software system requirement table.
具体实施方式Detailed ways
为了使本发明的目的、技术方案以及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施例仅用于解释本发明,并不限于本发明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention and are not limited to the present invention.
实施例1Example 1
如图1所示,一种表驱动的云模式软件自动构造方法,包括下述步骤:As shown in Figure 1, a table-driven cloud model software automatic construction method includes the following steps:
S1、用户根据Web软件框架提供或约定的表单格式,填写软件系统需求信息,生成软件系统信息表;然后将填写完成的软件系统需求表在线或离线提交至Web软件框架中;所述软件系统需求信息包括:系统管理员信息、用户组信息、用户信息、以及模型信息;所述Web软件框架是一个部署在Web服务器上的应用;S1. The user fills in the software system requirement information according to the form format provided or agreed upon by the Web software framework, and generates a software system information table; then submits the completed software system requirement form to the Web software framework online or offline; the software system requirements The information includes: system administrator information, user group information, user information, and model information; the Web software framework is an application deployed on the Web server;
S2、所述Web软件框架通过数据获取服务器接收用户指定的所述软件系统需求表的存储路径,并根据存储路径,获取所述软件系统需求表,然后Web软件框架对获取的软件系统需求表进行遍历,读取软件系统需求表所记载的各类信息,并将读取的各项软件系统需求信息传输至数据分析服务器;S2. The Web software framework receives the storage path of the software system requirement table specified by the user through the data acquisition server, and obtains the software system requirement table according to the storage path, and then the Web software framework performs operations on the obtained software system requirement table. Traverse, read various information recorded in the software system requirement table, and transmit the read various software system requirement information to the data analysis server;
S3、所述Web软件框架通过数据分析服务器对软件系统需求表中的各项软件系统需求信息进行数据类型及格式校验,判断是否满足软件系统需求表的格式填写要求;若校验不通过,则提示用户格式有误请重新上传软件系统需求表,即重复步骤S1、步骤S2和当前步骤;若校验通过,进行下一步操作;S3. The Web software framework uses the data analysis server to verify the data type and format of each software system requirement information in the software system requirement table to determine whether it meets the format filling requirements of the software system requirement table; if the verification fails, It prompts the user that the format is incorrect, please re-upload the software system requirements table, that is, repeat step S1, step S2 and the current step; if the verification is passed, proceed to the next step;
S4、Web软件框架自动化构造Web软件系统并在云端部署和发布,以及Web软件系统的更新;S4, the Web software framework automatically constructs the Web software system and deploys and publishes it on the cloud, as well as updates the Web software system;
S41、设计Web软件框架的底层代码类,所述底层代码类用于实现Web软件框架内部自动化构造Web软件系统;所述底层代码类涉及5个类,4个接口,其中,5个类包括:需求表读取类Read_Demand、用户组管理类Manage_Group、用户管理类Manage_User、模型管理类Manage_Schema、以及数据管理类Manage_Data;4个接口,包括:用户组管理接口GManage_Group、用户管理接口GManage_User、模型管理接口GManage_Schema、以及数据管理接口GManage_Data;通过Read_Demand类获取系统需求表中的各项需求信息,进行相应的生成数据库实体以及生成数据库实体集合操作;Manage_Group类实现了GManage_Group接口,对数据库实体的group集合中的用户组数据进行操作;Manage_User实现了GManage_User接口,对数据库实体的user集合中的用户数据进行操作;Manage_Schema实现了GManage_Schema接口,对数据库实体的schema集合中的模型数据进行操作;Manage_Data实现了GManage_Data接口,对数据库实体的data集合中的数据记录进行操作;Manage_Group、Manage_User、Manage_Schema、Manage_Data四个类都依赖于Read_Demand类;S41. Design the underlying code class of the Web software framework. The underlying code class is used to automatically construct the Web software system within the Web software framework. The underlying code class involves 5 classes and 4 interfaces, where the 5 classes include: Demand table reading class Read_Demand, user group management class Manage_Group, user management class Manage_User, model management class Manage_Schema, and data management class Manage_Data; 4 interfaces, including: user group management interface GManage_Group, user management interface GManage_User, model management interface GManage_Schema , and the data management interface GManage_Data; obtain various demand information in the system demand table through the Read_Demand class, and perform the corresponding operations of generating database entities and generating database entity collections; the Manage_Group class implements the GManage_Group interface, which controls users in the group collection of database entities. Manage_User implements the GManage_User interface to operate on user data in the user collection of database entities; Manage_Schema implements the GManage_Schema interface to operate on model data in the schema collection of database entities; Manage_Data implements the GManage_Data interface to operate on Operate the data records in the data collection of the database entity; the four classes Manage_Group, Manage_User, Manage_Schema, and Manage_Data all depend on the Read_Demand class;
S42、Web软件框架通过底层代码类自动化构造Web软件系统,其外部活动为:Web软件框架根据校验通过的软件系统需求表的管理员信息注册创建一个软件系统,然后再依次判断软件系统需求表中是否存在用户组信息、用户信息、模型信息或模型内结构信息,若存在,则Web软件框架读取软件系统需求表中对应存在的信息,并在创建的软件系统中生成用户组、用户、模型、或模型字段;对于软件系统需求表中存在多个模型情况,Web软件框架重复读取模型信息,直到读取完所有数量的模型,生成最终的Web软件系统;如图2所示,该步骤具体包括下述步骤:S42. The Web software framework automatically constructs a Web software system through underlying code classes. Its external activities are: the Web software framework registers and creates a software system based on the administrator information of the verified software system requirement table, and then determines the software system requirement table in turn. Whether there is user group information, user information, model information or structure information within the model. If it exists, the Web software framework reads the corresponding information in the software system requirements table and generates user groups, users, Model, or model field; when there are multiple models in the software system requirement table, the Web software framework repeatedly reads the model information until all the models have been read, and the final Web software system is generated; as shown in Figure 2, the The steps specifically include the following steps:
S421、Web软件框架读取软件系统需求表中的管理员信息,所述管理员信息包括系统管理员用户名、系统管理员密码、以及创建软件系统名称的信息;根据所读取的管理员信息,创建一个软件系统;S421. The Web software framework reads the administrator information in the software system requirement table. The administrator information includes the system administrator user name, the system administrator password, and the information to create the software system name; according to the read administrator information , create a software system;
S422、Web软件框架判断该软件系统需求表是否存在用户组信息,若软件系统需求表中存在用户组信息,所述用户组信息为用户组ID,则根据所读取的用户组ID在步骤S411创建的软件系统中生成用户组;若软件系统需求表中不存在用户组信息,则进行下一步操作;S422. The Web software framework determines whether user group information exists in the software system requirement table. If user group information exists in the software system requirement table, and the user group information is the user group ID, then step S411 is performed based on the read user group ID. Generate user groups in the created software system; if the user group information does not exist in the software system requirements table, proceed to the next step;
S423、Web软件框架判断该软件系统需求表是否存在用户信息,若软件系统需求表中不存在用户信息,所述用户信息包括用户ID、用户名、用户密码、以及用户所属组,根据所读取的用户信息在在步骤S411创建的软件系统中生成用户;若软件系统需求表中存在用户信息,则进行下一步操作;S423. The Web software framework determines whether user information exists in the software system requirement table. If there is no user information in the software system requirement table, the user information includes user ID, user name, user password, and the group to which the user belongs. According to the read The user information is generated in the software system created in step S411; if user information exists in the software system requirement table, proceed to the next step;
S424、Web软件框架判断该软件系统需求表是否存在模型信息,若软件系统需求表存在模型信息,则读取软件系统需求表中的模型数量,并赋值当前计数值为0,然后读取模型信息,即模型名称、模型录入员、用户所属组ID、以及用户所属组的组内用户权限信息,并根据所读取的模型信息在在步骤S411创建的软件系统中创建指定模型;然后再判断模型内是否存在结构信息,若模型内存在结构信息,则读取模型内结构信息,即模型内结构字段名称、字段类型、以及字段值是否允许为空,并根据所读取的模型内结构信息在已创建的指定模型内创建字段,同时当前模型数量计数值+1,然后判断当前计数是否小于模型数量,若当前计数小于模型数量,则继续读取下一个模型信息,重复该步骤操作;若当前计数大于模型数量,则Web软件框架完成软件系统的自构造,生成Web软件系统;S424. The Web software framework determines whether model information exists in the software system requirement table. If model information exists in the software system requirement table, read the number of models in the software system requirement table, assign the current count value to 0, and then read the model information. , that is, the model name, the model entry person, the group ID to which the user belongs, and the user permission information of the group to which the user belongs, and creates the specified model in the software system created in step S411 based on the read model information; and then determines the model Whether there is structural information in the model. If there is structural information in the model, read the structural information in the model, that is, the structural field name, field type, and whether the field value is allowed to be empty in the model, and based on the read structural information in the model, Create a field in the specified model that has been created, and add 1 to the current model number count value, and then determine whether the current count is less than the number of models. If the current count is less than the number of models, continue to read the next model information and repeat this step; if the current count is less than the number of models, continue reading the next model information and repeat the step; If the count is greater than the number of models, the Web software framework completes the self-construction of the software system and generates a Web software system;
S43、通过软件注入服务器将步骤S42获得的Web软件系统注入Web软件框架,并通过Web软件框架在云端自动部署和发布,供用户访问使用;在本实施例中,所述Web软件框架支持Web软件系统即服务SAAS云模式,就是所述Web软件框架生成的Web软件系统在云端自动部署和发布。S43. Inject the Web software system obtained in step S42 into the Web software framework through the software injection server, and automatically deploy and publish it in the cloud through the Web software framework for user access; in this embodiment, the Web software framework supports Web software The System as a Service SAAS cloud model means that the Web software system generated by the Web software framework is automatically deployed and released in the cloud.
S44、当用户要在所创建的Web软件系统批量注入数据时,用户填写数据记录交换表,所述数据记录交换表包括模型字段信息和数据记录信息,然后提交至Web软件框架,所述Web软件框架对数据记录交换表的信息进行读取,然后对读取后的信息进行格式校验,对于检验通过的数据交换记录表,Web软件框架读取其中的模型字段信息,并根据模型字段信息确定所要进行数据交换的模型,然后将数据记录信息注入该模型中,即完成数据注入操作。S44. When the user wants to batch inject data into the created Web software system, the user fills in the data record exchange form, which includes model field information and data record information, and then submits it to the Web software framework. The Web software The framework reads the information in the data record exchange table, and then performs format verification on the read information. For the data exchange record table that passes the verification, the Web software framework reads the model field information and determines the information based on the model field information. The model to be exchanged for data is then injected into the model with data record information, that is, the data injection operation is completed.
表1Table 1
在本实施例1中,如表1所示,所述软件系统需求表,具体包括如下:In this embodiment 1, as shown in Table 1, the software system requirements table specifically includes the following:
1)系统管理员信息部分,包括:a)系统管理员ID;b)系统管理员密码;c)系统标题;1) System administrator information part, including: a) system administrator ID; b) system administrator password; c) system title;
2)用户组信息部分,包括:a)用户组ID;可根据需求填写多个用户组,若无需用户组则不填;其中用户组ID的信息需填入同一行,不同列;2) User group information part, including: a) User group ID; multiple user groups can be filled in according to needs. If no user group is required, leave it blank; the user group ID information needs to be filled in the same row but in different columns;
3)用户信息部分,包括:a)用户ID;b)用户名;c)用户密码;d)用户所属组;其中的用户所属组,若某用户属于多个组,则用逗号分割;若某用户不属于任何组,则不填;3) User information part, including: a) user ID; b) user name; c) user password; d) group to which the user belongs; if a user belongs to multiple groups, separate them with commas; If the user does not belong to any group, leave it blank;
4)模型信息部分,包括:a)用户所属组的组内用户读写权限,包括三种:可读可写、可读不可写、不可读不可写;b)其他用户读写权限,包括三种:可读可写、可读不可写、不可读不可写;c)模型名称;d)录入员ID;e)所属组ID;f)模型内结构信息,包括:①字段类型,取值包括:Text、Float、Integer、Link、Date、Datetime、Boolean;②字段名;③字段值是否允许为空,取值可为:TRUE、FALSE;其中TRUE表示允许为空,FALSE表示不允许为空。4) Model information part, including: a) The read and write permissions of users in the group to which the user belongs, including three types: read and write, read and write, not read and write; b) The read and write permissions of other users, including three Type: readable and writable, readable but not writable, not readable but not writable; c) model name; d) entry ID; e) group ID; f) structural information within the model, including: ① Field type, the value includes : Text, Float, Integer, Link, Date, Datetime, Boolean; ②Field name; ③Whether the field value is allowed to be empty, the value can be: TRUE, FALSE; TRUE means that it is allowed to be empty, and FALSE means that it is not allowed to be empty.
以下为本实施例的表驱动的云模式软件自动构造方法及系统的具体应用实例,详细阐述了自动化生产Web软件系统的过程。The following is a specific application example of the table-driven cloud model software automatic construction method and system in this embodiment, and the process of automatically producing a Web software system is explained in detail.
若利用现有技术的软件构造方法,实现一个具备常规功能的Web软件系统需要经历系统需求分析、系统总体设计、系统详细设计、系统具体实现等常规化流程。以下将基于本实施例提出的一种表驱动的云模式软件系统自动构造方法详细叙述如何跨过传统的开发流程构造出一个大学城汽车4S服务管理信息系统;If the software construction method of the existing technology is used, realizing a Web software system with conventional functions requires going through conventional processes such as system requirements analysis, system overall design, system detailed design, and system specific implementation. The following will describe in detail how to construct a university town automobile 4S service management information system across the traditional development process based on a table-driven cloud model software system automatic construction method proposed in this embodiment;
1)按照本实施例提供的软件系统需求表格式填写大学城汽车4S服务管理信息系统的相关需求信息,本实例中软件系统需求表以Excel表为例。大学城汽车4S服务管理信息系统的软件系统需求表填写如表2所示:1) Fill in the relevant demand information of the University Town Automobile 4S Service Management Information System according to the software system demand table format provided in this embodiment. In this example, the software system demand table takes an Excel table as an example. The software system requirements table for the University Town Automobile 4S Service Management Information System is filled in as shown in Table 2:
表2Table 2
如表2可知:As shown in Table 2:
a)本系统的系统管理员ID为“liuyu2018”,密码为“2018”,系统标题为“大学城汽车4S服务管理信息系统1.0newmedia.lab.2018.Spring”。a) The system administrator ID of this system is "liuyu2018", the password is "2018", and the system title is "University Town Automobile 4S Service Management Information System 1.0newmedia.lab.2018.Spring".
b)本系统存在三个用户组,分别为:group1,group2,group3。b) There are three user groups in this system: group1, group2, and group3.
c)本系统存在三个用户,分别为:panshiying,其用户名为panshiying,用户密码为panshiying,所属组为group1;lirunmin,其用户名为lirunmin,用户密码为lirunmin,所属组为group2;liuyu,其用户名为liuyu,用户密码为liuyu,所属组为group1和group2。c) There are three users in this system, namely: panshiying, whose user name is panshiying, user password is panshiying, and the group he belongs to is group1; lirunmin, whose user name is lirunmin, user password is lirunmin, and his group is group2; liuyu, The user name is liuyu, the user password is liuyu, and the groups it belongs to are group1 and group2.
d)本系统存在三个模型。d) There are three models in this system.
e)第一个模型:模型名称为车辆基本信息,所属组为group1,所属组成员的权限为可读可写,其他用户的权限为可读不可写,录入员为liuyu;模型内有八个字段:字段类型为Integer的车辆类型编号,不允许为空;字段类型为Text的车辆型号,允许为空;字段类型为Text的汽车发动机型号,允许为空;字段类型为Text的车体型号,允许为空;字段类型为Text的车轮型号,允许为空;字段类型为Float的销售价格,允许为空;字段类型为Text的车辆颜色,允许为空;字段类型为Text的车辆类型,允许为空。e) The first model: the model name is the basic information of the vehicle, the group it belongs to is group1, the permissions of the members of the group are readable and writable, the permissions of other users are readable and non-writable, the entry person is liuyu; there are eight in the model Field: The vehicle type number whose field type is Integer is not allowed to be empty; the vehicle model whose field type is Text is allowed to be empty; the vehicle engine model whose field type is Text is allowed to be empty; the vehicle body model whose field type is Text, Allowed to be empty; wheel model whose field type is Text, allowed to be empty; sales price whose field type is Float, allowed to be empty; vehicle color whose field type is Text, allowed to be empty; vehicle type whose field type is Text, allowed to be empty null.
f)第二个模型:模型名称为客户信息,所属组为group1,所属组成员的权限为可读可写,其他用户的权限为可读不可写,录入员为liuyu;模型内有6个字段:字段类型为Integer的客户编号,不允许为空;字段类型为Text的客户名称,不允许为空;字段类型为Text的身份证编号,允许为空;字段类型为Text的服务机构,允许为空;字段类型为Text的收入状况,允许为空;字段类型为Integer的年龄,允许为空。f) The second model: the model name is customer information, the group it belongs to is group1, the permissions of the group members are readable and writable, the permissions of other users are readable and non-writable, the entry person is liuyu; there are 6 fields in the model : The customer number whose field type is Integer is not allowed to be empty; the customer name whose field type is Text is not allowed to be empty; the ID card number whose field type is Text is allowed to be empty; the service organization whose field type is Text is allowed to be empty Empty; if the field type is Text, the income status is allowed to be empty; if the field type is Integer, the age is allowed to be empty.
g)第三个模型:模型名称为维修信息,所属组为group2,所属组成员的权限为可读可写,其他用户的权限为可读不可写,录入员为liuyu;模型内有7个字段:字段类型为Integer的维修编号,允许为空;字段类型为Text的客户名称,允许为空;字段类型为Text的车辆名称,允许为空;字段类型为Text的车辆编号,允许为空;字段类型为Text的故障类型,允许为空;字段类型为Text的维修记录,允许为空;字段类型为Text的维修费用,允许为空。g) The third model: the model name is maintenance information, the group it belongs to is group2, the permissions of the group members are readable and writable, the permissions of other users are readable and non-writable, the entry person is liuyu; there are 7 fields in the model : The maintenance number whose field type is Integer is allowed to be empty; the customer name whose field type is Text is allowed to be empty; the vehicle name whose field type is Text is allowed to be empty; the vehicle number whose field type is Text is allowed to be empty; field The fault type of Text type is allowed to be empty; the maintenance record with field type of Text is allowed to be empty; the maintenance cost with field type of Text is allowed to be empty.
2)将该Excel格式的软件系统需求表命名为与系统管理员ID相同。本应用实例中该Excel文件名为“liuyu2018.xls”。2) Name the software system requirements table in Excel format the same as the system administrator ID. In this application example, the name of the Excel file is "liuyu2018.xls".
3)Web软件框架的超级管理员读取软件系统需求表中的系统管理员ID、系统管理员密码及系统标题,在Web软件框架的后台注册系统管理员账号。3) The super administrator of the Web software framework reads the system administrator ID, system administrator password and system title in the software system requirement table, and registers the system administrator account in the background of the Web software framework.
4)用户使用注册的系统管理员账号登录相应的Web软件框架中,将其定义的Excel格式的软件系统需求表上传至Web软件框架,将软件系统需求信息注入Web软件框架中;点击提交Excel文件后,即生成了满足需求定义的Web软件系统;4) The user uses the registered system administrator account to log in to the corresponding Web software framework, uploads the software system requirements table in Excel format defined by the user to the Web software framework, and injects the software system requirement information into the Web software framework; click to submit the Excel file After that, a Web software system that meets the requirements definition is generated;
5)显示成功后刷新面板,可查看到生成的大学城汽车4S服务管理信息系统1.0newmedia.lab.2018.Spring。5) After the display is successful, refresh the panel and you can view the generated University Town Automobile 4S Service Management Information System 1.0newmedia.lab.2018.Spring.
在本应用实例的大学城汽车4S服务管理信息系统中,普通用户界面如图4所示,系统管理员界面可以查到如图3(a)所示的用户组管理界面、如图3(b)所示的用户管理界面、和如图3(c)所示的模型管理界面。In the university town automobile 4S service management information system of this application example, the ordinary user interface is shown in Figure 4. The system administrator interface can find the user group management interface shown in Figure 3(a), Figure 3(b) ), and the model management interface shown in Figure 3(c).
表3table 3
在本应用实例中,如表3所示为数据记录交换表格式,对其描述如下:In this application example, the format of the data record exchange table is shown in Table 3, which is described as follows:
用户通过填写软件系统需求表生成Web软件系统后,可填写数据记录交换表向Web软件系统中批量注入数据。After users generate a Web software system by filling in the software system requirement form, they can fill in the data record exchange form to inject data into the Web software system in batches.
所述数据记录交换表包括以下两部分:The data record exchange table includes the following two parts:
1)字段信息部分:用户根据所要注入数据记录的模型字段填写。1) Field information part: The user fills in the model fields according to the data record to be injected.
2)数据记录部分:用户根据需求添加需要注入到模型中的数据记录信息。2) Data recording part: Users add data recording information that needs to be injected into the model according to their needs.
如图5所示,自动化注入数据记录,具体包括下述步骤:As shown in Figure 5, automatic injection of data records specifically includes the following steps:
1)客户根据需求填写由本发明提供格式的数据记录交换表。1) The customer fills in the data record exchange form in the format provided by the present invention according to the needs.
2)Web软件框架获取1)中客户上传的数据记录交换表,并校验数据记录交换表格式是否符合要求,若不符合则提示用户格式有误请重新上传,若符合则转入3)。2) The Web software framework obtains the data record exchange table uploaded by the customer in 1) and verifies whether the format of the data record exchange table meets the requirements. If it does not meet the requirements, it will prompt the user that the format is incorrect and please re-upload it. If it meets the requirements, it will transfer to 3).
3)Web软件框架读取数据记录交换表中的模型字段信息。3) The Web software framework reads the model field information in the data record exchange table.
4)Web软件框架根据3)读取的模型字段信息确定所需进行数据交换的模型。4) The Web software framework determines the model required for data exchange based on the model field information read in 3).
5)Web软件框架逐行读取数据记录交换表中的数据记录信息,并依次将其注入到步骤4)确定的模型中。5) The Web software framework reads the data record information in the data record exchange table line by line, and injects it into the model determined in step 4) in turn.
在本应用实例中,如图6所示为自动化生成的Web软件系统的超级管理员模块用例图,超级管理员(该参与者)关联的用例是系统管理,其中系统管理具体包含了新增系统、删除系统和获取系统列表三个用例。In this application example, Figure 6 shows the automatically generated super administrator module use case diagram of the Web software system. The use case associated with the super administrator (this participant) is system management, where system management specifically includes new systems. There are three use cases: deleting system and getting system list.
如图7所示为自动化生成的Web软件系统的系统管理员用例图,系统管理员(该参与者)关联的用例有用户管理、用户组管理和模型管理三个用例,具体如下:Figure 7 shows the system administrator use case diagram of the automatically generated Web software system. The use cases associated with the system administrator (this participant) include three use cases: user management, user group management and model management, as follows:
1)所述用户管理,该用例又包含七个用例,即添加用户、删除用户、编辑用户、获取用户列表、获取用户所属组列表、添加用户到用户组、将用户从用户组中删除;其中,1) The user management, this use case includes seven use cases, namely adding users, deleting users, editing users, obtaining user lists, obtaining user group list, adding users to user groups, and deleting users from user groups; among which ,
a)所述添加用户括两个用例,在系统内逐个添加用户和根据系统需求表批量添加用户;a) The described adding of users includes two use cases, adding users one by one in the system and adding users in batches according to the system requirement table;
b)所述添加用户到用户组括两个用例,在系统内逐个添加用户到用户组和根据系统需求表批量添加用户到用户组;b) The described adding users to user groups includes two use cases, adding users to user groups one by one in the system and adding users to user groups in batches according to the system requirement table;
2)所述用户组管理,该用例包含了八个用例,即添加用户组、删除用户组、编辑用户组、获取用户组列表、获取用户组的用户列表、添加用户到用户组、从用户组中删除用户、获取用户组拥有权限的模型列表;其中,2) The user group management, this use case includes eight use cases, namely adding user group, deleting user group, editing user group, getting user group list, getting user list of user group, adding user to user group, from user group Delete users and obtain the list of models that the user group has permissions from; among them,
a)所述添加用户组包括两个用例,即在系统内逐个添加用户组和根据系统需求表批量添加用户组两个用例;a) The adding of user groups includes two use cases, namely adding user groups one by one in the system and adding user groups in batches according to the system requirements table;
b)所述添加用户到用户组包括两个用例,即在系统内逐个添加用户到用户组和根据系统需求表批量添加用户到用户组;b) The described adding users to user groups includes two use cases, namely adding users to user groups one by one in the system and adding users to user groups in batches according to the system requirements table;
3)所述模型管理,该用例包含了四个用例,即添加模型、删除模型、编辑模型、获取系统模型列表;3) The model management, this use case includes four use cases, namely adding model, deleting model, editing model, and obtaining system model list;
a)所述添加模型包括两个用例,即在系统内逐个添加模型和根据系统需求表批量添加模型两个用例;a) The added model includes two use cases, namely adding models one by one in the system and adding models in batches according to the system requirement table;
b)所述编辑模型包括两个用例,即编辑模型信息和编辑模型内字段信息。b) The editing model includes two use cases, namely editing model information and editing field information within the model.
如图8所示为自动化生成的Web软件系统的用户界面用例图,具体描述如下:Figure 8 shows the user interface use case diagram of the automatically generated Web software system. The specific description is as follows:
1)用户,该参与者关联五个用例,即数据管理、数据统计、导入数据记录、导出数据记录、高级搜索;其中,1) User, this participant is associated with five use cases, namely data management, data statistics, importing data records, exporting data records, and advanced search; among them,
a)所述数据管理包括四个用例,即获取模型所有记录、添加数据记录、删除数据记录、修改数据记录;a) The data management includes four use cases, namely obtaining all records of the model, adding data records, deleting data records, and modifying data records;
b)所述数据统计用例包括四个用例,即最大值统计、最小值统计、平均值统计、记录数统计四个用例;b) The data statistics use cases include four use cases, namely maximum value statistics, minimum value statistics, average value statistics, and record number statistics;
如图9所示为自动化构造软件系统流程的UML类图,具体描述如下:Figure 9 shows the UML class diagram of the automated construction software system process. The specific description is as follows:
自动化构造Web软件系统通过底层代码类实现,所述底层代码类主要涉及5个类,4个接口,其中,5个类包括:需求表读取类Read_Demand、用户组管理类Manage_Group、用户管理类Manage_User、模型管理类Manage_Schema、以及数据管理类Manage_Data;4个接口,包括:用户组管理接口GManage_Group、用户管理接口GManage_User、模型管理接口GManage_Schema、数据管理接口GManage_Data;The automated construction of the Web software system is implemented through underlying code classes. The underlying code classes mainly involve 5 classes and 4 interfaces. Among them, the 5 classes include: demand table reading class Read_Demand, user group management class Manage_Group, and user management class Manage_User. , model management class Manage_Schema, and data management class Manage_Data; 4 interfaces, including: user group management interface GManage_Group, user management interface GManage_User, model management interface GManage_Schema, and data management interface GManage_Data;
通过所述底层代码类自动化构造Web软件系统,具体包括下述步骤:The Web software system is automatically constructed through the underlying code class, which specifically includes the following steps:
(1)、通过需求表读取类Read_Demand中用来处理系统管理员信息的API读取软件系统需求表中的系统管理员板块,遍历其单元格,根据系统管理员ID、系统管理员密码和系统名称在Web软件框架的超级管理员权限下注册软件系统,并在该Web软件框架的底层数据库中创建软件系统相应的数据库实体,同时在该数据库下创建4个Collection,分别为用户组group、用户user、模型schema、数据data;其中所述超级管理员是Web软件框架的最高权限管理员,用于接收用户设定的管理员信息并在Web框架中注册软件系统;所述Web软件框架的底层数据库用于Web软件框架存储数据;(1) Read the system administrator section in the software system demand table through the API used to process system administrator information in the demand table reading class Read_Demand, traverse its cells, and based on the system administrator ID, system administrator password and The system name registers the software system under the super administrator authority of the Web software framework, and creates the corresponding database entity of the software system in the underlying database of the Web software framework. At the same time, four Collections are created under the database, namely user group group, User user, model schema, data data; wherein the super administrator is the highest authority administrator of the Web software framework, used to receive the administrator information set by the user and register the software system in the Web framework; the Web software framework The underlying database is used by the Web software framework to store data;
(2)、通过需求表读取类Read_Demand中用来处理用户组信息的API读取软件系统需求表中的用户组信息,遍历其填写的用户组ID信息单元格,根据得到的用户组ID信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的用户组group集合中;(2) Read the user group information in the software system demand table through the API used to process user group information in the demand table reading class Read_Demand, traverse the filled in user group ID information cells, and based on the obtained user group ID information Generate a string in Json format and insert it into the user group collection of the database entity created in step (1);
(3)、通过需求表读取类Read_Demand中用来处理用户信息的API读取软件系统需求表中的用户信息,遍历其填写的用户信息,按行读取并遍历每行的单元格,根据得到的所有用户信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的用户user集合中;(3) Read the user information in the software system demand table through the API used to process user information in the demand table reading class Read_Demand, traverse the user information filled in, read row by row and traverse the cells of each row, according to All the user information obtained is generated as a string in Json format and inserted into the user collection of the database entity created in step (1);
(4)、通过需求表读取类Read_Demand中用来处理模型信息的API读取系统需求表的模型信息,遍历其填写的模型信息单元格,根据模型信息生成Json格式的字符串,并将其插入到步骤(1)创建的数据库实体的模型schema集合中;(4) Read the model information of the system demand table through the API used to process model information in the demand table reading class Read_Demand, traverse the filled model information cells, generate a Json format string based on the model information, and convert it Insert into the model schema collection of the database entity created in step (1);
(5)、通过用户组管理类Manage_Group对底层数据库中数据库实体的用户组group集合中的用户组数据进行操作,并将操作结果返回给Web软件框架的系统显示界面,所述用户组管理类Manage_Group实现Web软件框架中定义的用户组管理接口GManage_Group;(5) Operate the user group data in the user group group collection of the database entity in the underlying database through the user group management class Manage_Group, and return the operation results to the system display interface of the Web software framework. The user group management class Manage_Group Implement the user group management interface GManage_Group defined in the Web software framework;
(6)、通过用户管理类Manage_User对底层数据库中数据库实体的用户user集合中的用户数据进行操作,并将操作结果返回给Web软件框架的系统显示界面;(6) Operate the user data in the user collection of the database entity in the underlying database through the user management class Manage_User, and return the operation results to the system display interface of the Web software framework;
(7)、通过模型管理类Manage_Schema对底层数据库中数据库实体的schema集合中的模型数据进行操作,并将结果返回给Web软件框架的界面,所述模型管理类Manage_Schema实现Web软件框架中定义的模型管理接口GManage_Schema;(7) Operate the model data in the schema collection of the database entities in the underlying database through the model management class Manage_Schema, and return the results to the interface of the Web software framework. The model management class Manage_Schema implements the model defined in the Web software framework. Management interface GManage_Schema;
(8)、通过数据管理类Manage_Data对底层数据库中数据库实体的data集合中的数据记录进行操作,并将结果返回给Web软件框架的系统显示界面,所述数据管理类Manage_Data实现了Web软件框架中定义的数据管理接口GManage_Data。(8) Operate the data records in the data collection of the database entity in the underlying database through the data management class Manage_Data, and return the results to the system display interface of the Web software framework. The data management class Manage_Data implements the Defined data management interface GManage_Data.
如图10为利用本发明的软件自动构造方法构造的Web软件系统应用实例活动图,具体描述如下:Figure 10 is an activity diagram of a Web software system application example constructed using the automatic software construction method of the present invention. The specific description is as follows:
1)用户填写软件系统需求表并上传到Web软件框架;1) The user fills in the software system requirement form and uploads it to the Web software framework;
2)Web软件框架获取用户上传的系统需求表,判断用户上传的系统需求表格式是否正确,格式正确则进入读取系统需求表的活动,否则提示用户系统需求表的格式有误,让其重新上传。2) The Web software framework obtains the system requirement table uploaded by the user and determines whether the format of the system requirement table uploaded by the user is correct. If the format is correct, it enters the activity of reading the system requirement table. Otherwise, it prompts the user that the format of the system requirement table is incorrect and asks the user to read it again. Upload.
3)Web软件框架读取系统管理员用户名、密码和系统标题等创建系统的信息,并由超级管理员在Web软件框架中注册系统。3) The Web software framework reads the system administrator’s user name, password, system title and other information used to create the system, and the super administrator registers the system in the Web software framework.
4)进入判断,若存在用户组相关信息,则进入读取用户组相关信息并创建用户组的活动,随后进入判断是否存在用户相关信息的活动,若不存在用户组相关信息则不创建用户组,进入判断是否存在用户相关信息的活动。4) Enter the judgment. If there is user group related information, enter the activity of reading the user group related information and create the user group, and then enter the activity of judging whether the user group related information exists. If there is no user group related information, the user group will not be created. , enter the activity of determining whether user-related information exists.
5)进入判断,若存在用户相关信息,则进入读取用户相关信息并创建用户的活动,随后进入判断是否存在模型相关信息的活动,若不存在用户组相关信息则不创建用户,进入判断是否存在模型相关信息的活动。5) Enter the judgment. If there is user-related information, enter the activity of reading the user-related information and create the user, and then enter the activity of judging whether there is model-related information. If there is no user group-related information, the user will not be created, and enter the judgment whether Activities for which model-related information exists.
6)进入判断,若存在模型相关信息,则进入读取系统需求表中模型数量并记当前数量为0的活动,随后进入读取模型相关信息并创建模型的活动,再进入判断是否存在模型内字段相关信息的活动,若不存在用户组相关信息则不创建模型,进入生成目标系统的活动。6) Enter the judgment. If there is model-related information, enter the activity of reading the number of models in the system requirement table and record the current number as 0, then enter the activity of reading the model-related information and create the model, and then enter the activity of judging whether there is a model in the The activity of field related information. If there is no user group related information, the model will not be created and the activity of generating the target system will be entered.
7)进入判断,若存在模型内字段相关信息,则进入读取模型内字段相关信息并创建模型内字段活动,随后进入将当前模型计数+1的活动,再进入判断当前模型计数是否小于模型数量的活动,若不存在模型内字段相关信息,则直接进入判断当前模型计数是否小于模型数量的活动。7) Enter judgment. If there is information related to fields in the model, enter the activity of reading field related information in the model and create fields in the model. Then enter the activity of adding the current model count by 1, and then enter the activity of judging whether the current model count is less than the number of models. If there is no field-related information in the model, it will directly enter the activity of determining whether the current model count is less than the number of models.
8)进入判断,若当前模型计数小于模型数量,则进入读取模型相关信息并创建模型的活动,若当前模型计数不小于模型数量,进入生成目标Web软件系统的活动。8) Enter judgment. If the current model count is less than the number of models, enter the activity of reading model-related information and create models. If the current model count is not less than the number of models, enter the activity of generating the target Web software system.
如图11为利用本发明的软件自动构造方法构造的Web软件系统应用实例状态图,具体描述如下:Figure 11 is a state diagram of a Web software system application example constructed using the automatic software construction method of the present invention. The specific description is as follows:
1)当用户将系统需求表上传至Web软件框架后,进入判断,若格式校验正确则进入系统需求表格式正确状态,否则状态终止,无法创建系统。1) When the user uploads the system requirement table to the Web software framework, it enters judgment. If the format verification is correct, it enters the system requirement table format correct state. Otherwise, the state terminates and the system cannot be created.
2)若进入系统需求表格式正确状态,Web软件框架的超级系统管理员根据需求表中的系统需求信息在Web软件框架中注册系统,进入注册系统成功状态。2) If the system requirement table format is entered into the correct state, the super system administrator of the Web software framework registers the system in the Web software framework based on the system requirement information in the requirement table, and enters the registration system success state.
3)进入判断,Web软件框架判断系统需求表中是否存在用户组信息。若存在,则创建用户组,进入用户组创建成功状态;若不存在,则不创建用户组,进入未创建用户组状态。3) Entering the judgment, the Web software framework judges whether user group information exists in the system requirement table. If it exists, the user group is created and the user group creation success state is entered; if it does not exist, the user group is not created and the user group is not created.
4)进入判断,Web软件框架判断系统需求表中是否存在用户信息。若存在,则创建用户,进入用户创建成功状态;若不存在,则不创建用户,进入未创建用户状态。4) Entering the judgment, the Web software framework judges whether user information exists in the system requirement table. If it exists, the user is created and the user creation success state is entered; if it does not exist, the user is not created and the user is not created.
5)进入判断,Web软件框架判断系统需求表中是否存在模型信息。若存在,则创建模型,进入模型创建成功状态;若不存在,则不创建模型,进入未创建模型状态。5) Entering the judgment, the Web software framework judges whether model information exists in the system requirement table. If it exists, the model is created and the model creation success state is entered; if it does not exist, the model is not created and the model is not created.
6)若5)中进入未创建模型状态,则状态终止,系统创建成功。否则跳入7)6) If the model is not created in 5), the state will be terminated and the system will be created successfully. Otherwise jump to 7)
7)进入判断,Web软件框架判断系统需求表中是否存在模型字段等信息。若存在,则创建模型字段等,进入模型字段创建成功状态;若不存在,则不创建模型字段,进入未创建模型字段状态。7) Entering the judgment, the Web software framework judges whether there are model fields and other information in the system requirements table. If it exists, create model fields, etc., and enter the model field creation success state; if it does not exist, do not create the model field, and enter the model field not created state.
8)状态终止,系统创建成功。8) The status is terminated and the system is created successfully.
实施例2Example 2
如图12所示,一种表驱动的云模式软件自动构造方法的软件自动构造系统,包括客户端、数据获取模块、数据分析模块、软件构造模块、软件注入模块、以及Web服务器;所述客户端用于用户填写软件系统需求表并提交至数据获取模块,所述数据获取模块通过数据获取服务器遍历软件系统需求表,并对软件系统需求表所记载的信息进行分类读取,然后将分类读取后的各项软件系统需求信息传输至数据分析模块;所述数据分析模块通过数据分析服务器对获取的各项软件系统需求信息进行格式分析校验,若格式校验错误,则提醒用户重新填写软件系统需求表,若格式校验正确,则将格式校验正确的各项软件系统需求信息传输至软件构造模块;所述软件构造模块根据格式校验正确的各项软件系统需求信息,并通过软件构建服务器,自动构造出与该信息匹配的Web软件系统,然后将所述的Web软件系统传输至软件注入模块;所述软件注入模块通过软件注入服务器将Web软件系统注入Web软件框架,并通过Web软件框架将Web软件系统部署在Web服务器上,供用户访问使用;所述Web软件框架是一个用于自动构造软件,并部署在Web服务器上的应用,带有系统显示界面。As shown in Figure 12, a software automatic construction system of a table-driven cloud model software automatic construction method includes a client, a data acquisition module, a data analysis module, a software construction module, a software injection module, and a Web server; the client The terminal is used for users to fill in the software system requirement form and submit it to the data acquisition module. The data acquisition module traverses the software system requirement form through the data acquisition server, classifies and reads the information recorded in the software system requirement form, and then reads the classified information The obtained software system requirement information is transmitted to the data analysis module; the data analysis module performs format analysis and verification on the obtained software system requirement information through the data analysis server. If the format verification is incorrect, the user is reminded to refill it. Software system requirements table, if the format verification is correct, then the software system requirement information with correct format verification is transmitted to the software construction module; the software construction module verifies the correct software system requirement information according to the format, and passes The software construction server automatically constructs a Web software system that matches the information, and then transmits the Web software system to the software injection module; the software injection module injects the Web software system into the Web software framework through the software injection server, and The Web software framework deploys the Web software system on the Web server for users to access and use; the Web software framework is an application used to automatically construct software and deploy it on the Web server, with a system display interface.
在本实施例2中,所述客户端、数据获取服务器、数据分析服务器、软件构造服务器、软件注入服务器、以及Web服务器均是采用PC电脑,所述客户端与Web服务器之间采用Http通信方式,通信协议采用TCP协议;其余服务器间均采用Socket通信方式,通信协议采用TCP协议。In this embodiment 2, the client, data acquisition server, data analysis server, software construction server, software injection server, and Web server are all PC computers, and HTTP communication is used between the client and the Web server. , the communication protocol adopts TCP protocol; other servers adopt Socket communication method, and the communication protocol adopts TCP protocol.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以权利要求所述为准。The above-mentioned embodiments only express several implementation modes of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the patent scope of the present invention. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the claims.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810455972.8A CN108427554B (en) | 2018-05-14 | 2018-05-14 | A table-driven cloud model software automatic construction method and system |
PCT/CN2018/111941 WO2019218597A1 (en) | 2018-05-14 | 2018-10-25 | Automatic construction method and system for table driven cloud-model software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810455972.8A CN108427554B (en) | 2018-05-14 | 2018-05-14 | A table-driven cloud model software automatic construction method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108427554A CN108427554A (en) | 2018-08-21 |
CN108427554B true CN108427554B (en) | 2023-09-08 |
Family
ID=63162942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810455972.8A Expired - Fee Related CN108427554B (en) | 2018-05-14 | 2018-05-14 | A table-driven cloud model software automatic construction method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108427554B (en) |
WO (1) | WO2019218597A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427554B (en) * | 2018-05-14 | 2023-09-08 | 华南理工大学 | A table-driven cloud model software automatic construction method and system |
CN109858796A (en) * | 2019-01-25 | 2019-06-07 | 中广核工程有限公司 | A kind of information system requirement management system and method |
CN111580786B (en) * | 2020-05-06 | 2021-09-21 | 厦门理工学院 | Internet + -based software engineering development system |
CN111723396B (en) * | 2020-05-20 | 2023-02-10 | 华南理工大学 | A SaaS-based general cloud data privacy protection platform and method |
CN113221526A (en) * | 2021-04-15 | 2021-08-06 | 杭州费尔斯通科技有限公司 | Method and system for realizing Web end project form designer |
CN113486418B (en) * | 2021-06-04 | 2024-02-09 | 中国交通信息科技集团有限公司 | BIM model cloud coding method and system |
CN113672202A (en) * | 2021-08-24 | 2021-11-19 | 德清阿尔法创新研究院 | Zero code application arrangement system oriented to Internet of things software definition and use method thereof |
CN116795884B (en) * | 2023-06-30 | 2025-05-30 | 南京维拓科技股份有限公司 | A component analysis implementation method based on Redis |
CN118519616A (en) * | 2024-07-23 | 2024-08-20 | 广州嘉为科技有限公司 | Method, system and medium for recording and visually backtracking data in demand research and development process |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794226A (en) * | 2010-03-08 | 2010-08-04 | 山东大学 | Service software construction method and system adapting to multiple business abstraction levels |
CN106445536A (en) * | 2016-09-28 | 2017-02-22 | 湛江市霞山区新软佳科技有限公司 | Automated business design management system |
US20170147482A1 (en) * | 2015-11-20 | 2017-05-25 | General Electric Company | System and method for safety-critical software automated requirements-based test case generation |
CN107729008A (en) * | 2017-09-28 | 2018-02-23 | 武汉创客空间信息管理有限公司 | A kind of method based on electrical form rapid build management information system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8375351B2 (en) * | 2007-06-23 | 2013-02-12 | International Business Machines Corporation | Extensible rapid application development for disparate data sources |
US8863074B2 (en) * | 2010-01-27 | 2014-10-14 | Oracle International Corporation | Software modeling framework |
CN101853160A (en) * | 2010-05-18 | 2010-10-06 | 上海动量软件技术有限公司 | Platform system and method for realizing framework configuration based on cloud components in computer software system |
CN103383645B (en) * | 2013-07-29 | 2016-05-11 | 北京邮电大学 | Code generating method and system |
CN105630472B (en) * | 2014-11-03 | 2019-12-24 | 中国科学院沈阳自动化研究所 | Manufacturing execution system client rapid development framework and software development method |
CN104899032B (en) * | 2015-06-02 | 2017-12-01 | 浪潮集团有限公司 | OpenDaylight automatic development method based on data analysis |
CN108427554B (en) * | 2018-05-14 | 2023-09-08 | 华南理工大学 | A table-driven cloud model software automatic construction method and system |
-
2018
- 2018-05-14 CN CN201810455972.8A patent/CN108427554B/en not_active Expired - Fee Related
- 2018-10-25 WO PCT/CN2018/111941 patent/WO2019218597A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794226A (en) * | 2010-03-08 | 2010-08-04 | 山东大学 | Service software construction method and system adapting to multiple business abstraction levels |
US20170147482A1 (en) * | 2015-11-20 | 2017-05-25 | General Electric Company | System and method for safety-critical software automated requirements-based test case generation |
CN106445536A (en) * | 2016-09-28 | 2017-02-22 | 湛江市霞山区新软佳科技有限公司 | Automated business design management system |
CN107729008A (en) * | 2017-09-28 | 2018-02-23 | 武汉创客空间信息管理有限公司 | A kind of method based on electrical form rapid build management information system |
Non-Patent Citations (1)
Title |
---|
冯昌琪等.云模式的分级诊疗管理信息系统.中国数字医学.2016,第11卷(第8期),第1-3页. * |
Also Published As
Publication number | Publication date |
---|---|
CN108427554A (en) | 2018-08-21 |
WO2019218597A1 (en) | 2019-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108427554B (en) | A table-driven cloud model software automatic construction method and system | |
US10972479B2 (en) | Task completion using a blockchain network | |
Imam et al. | Automatic schema suggestion model for NoSQL document-stores databases | |
US20140298151A1 (en) | Creation and distribution of forms | |
CN104391934A (en) | Data calibration method and device | |
Priebe et al. | Business information modeling: A methodology for data-intensive projects, data science and big data governance | |
CN113326027A (en) | Domain-driven design tactical modeling method | |
CN114020630A (en) | Automatic generation method and system for interface use case | |
CN115544183A (en) | Data visualization method and device, computer equipment and storage medium | |
CN107392560A (en) | A kind of Excel list datas issue acquisition method and system based on internet | |
Goderis et al. | Benchmarking workflow discovery: a case study from bioinformatics | |
US11144860B2 (en) | Method and system for generating a dashboard | |
CN117851375A (en) | Metadata model optimization method and computing device | |
CN116756022A (en) | Data preparation methods, devices, computer equipment and storage media | |
CN116450619A (en) | Database operation and maintenance method, device, equipment, storage medium and program product | |
CN114880387A (en) | Data integration script generation method and device, storage medium and electronic equipment | |
CN115495452A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN119668567B (en) | Business model generation method, device, computer equipment and readable storage medium | |
Mironov et al. | RESTful web services development in situation-oriented databases | |
CN117971184B (en) | Method, device, equipment and medium for establishing association architecture based on metadata drive | |
CN117687608B (en) | Method, device, equipment and storage medium for generating orchestration stream | |
CN119149541A (en) | Service form generation tool and method | |
CN116383138A (en) | Document changing method, device, computer equipment and storage medium | |
Kantipudi | Business insights of user usage records of data cards | |
WO2024157079A1 (en) | Server device, information processing method, and non-transitory storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230908 |