Online form development system
Technical Field
The invention belongs to the technical field of data visualization and the field of computer language systems, and particularly relates to an online form development system.
Background
Performing model definition by adopting a domain model language technology, developing based on JAVA and JS technical components, performing visual design on a page in an online mode, and constructing a view model according to page elements; when the page is accessed, the view rendering engine is used for dynamically analyzing the view model and rendering the view model into the page. However, the existing development process has more and complicated procedures and cannot be developed quickly.
Disclosure of Invention
The invention aims to provide an online form development system, which simplifies the design complexity of an enterprise-level application system based on Web, expands the complexity and the development efficiency and provides a flexible man-machine interaction mode of visual design; the development efficiency is greatly improved.
In order to achieve the purpose, the technical scheme of the invention is as follows:
an online form development system comprising:
the system comprises a user-defined module, a database, a data model module, a business model module and a view model module, wherein the user-defined module is set by a user and is connected with the database;
the model checking engine module is connected with the database and used for verifying the parameters set by the custom module and screening out the custom modules meeting the rules;
the view model module, the corresponding data model module and the service model module are connected with the model checking engine module; the view model module displays data through a view rendering engine module, the data model module is connected with a database through a data access engine module, and the service model module is connected with the data access engine module through a service logic engine module.
In a preferred embodiment of the present invention, the data model module includes one or more relational databases of three kinds of relational databases, namely Oracle, Mysql or SQLServer.
In a preferred embodiment of the present invention, the business model module is configured to set page foreground interaction rules, background data processing rules, and common component configuration rules.
In a preferred embodiment of the present invention, the view model module is used for setting a presentation mode of a page.
In a preferred embodiment of the invention, the custom module provides system data model building functions in an online manner in the system.
Through the technical scheme, the invention has the beneficial effects that:
the method completes the definition of a view model, a data model and a business logic model in an online mode; using a model grammar checking rule to carry out grammar checking on an existing model; and analyzing the view model by using a view rendering engine, rendering the view model into a view page based on HTML, generating and executing business logic by using a business execution engine according to a business logic model, and calling a data access engine operation data model based on the JDBC protocol to perform addition, deletion, modification and check operations on data. The key point of the invention is to quickly construct a Web application system in an online mode based on the domain model language technology
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only examples of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is an overall technical structural view of the present invention.
Fig. 2 is an overall architecture diagram of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific drawings.
Referring to fig. 1 and 2, an online form development system includes: the system comprises a user-defined module, a database, a data model module, a business model module and a view model module, wherein the user-defined module is set by a user and is connected with the database;
the model checking engine module is connected with the database and used for verifying the parameters set by the custom module and screening out the custom modules meeting the rules;
the view model module, the corresponding data model module and the service model module are connected with the model checking engine module; the view model module displays data through a view rendering engine module, the data model module is connected with a database through a data access engine module, and the service model module is connected with the data access engine module through a service logic engine module.
Specifically, the self-defining module provides a system data model building function in an online mode in the system, and a data model module, a business logic model module and a view model module are built through the configuration of a user foreground page.
The model checking engine module provides a model checking function in a service mode in the system, and the function performs validity checking on the model according to the corresponding checking rule of the model and outputs the legal model. In the interface definition process of database extraction, different models exist in different Model objects, and the different models correspond to different rules, so that the system is ensured to be adapted to the interface levels of all the models. The check rule is checked by the Drools technology component. The model checking engine is a rule checking mechanism for calling the technical component, and finally provides a model conforming to the rule.
And the view rendering engine module is used for performing dynamic analytic rendering on the view model in a service mode in the system to obtain a functional page. And each view model inherits the base class App, and the Render method of the base class is rewritten, so that the adaptation function of the rendering engine to each view model is ensured. Each page object can self-define a rendering tool of the page object, so that the view object and the rendering tool are abstracted, each model object can independently change, the view object and the rendering tool are managed through a construction factory of the view model, dynamic coupling is realized, and more flexibility is increased.
The view model is a model with a hierarchical relationship, and each model has a rendering tool customized by the model. When the view rendering engine is used for analyzing the view model, the rendering method of the model is called recursively according to the hierarchical relation, and finally the view page corresponding to the view model based on the HTML is returned and finally displayed to a user through the Freemarker technology.
And the business execution engine module is used for dynamically analyzing the business logic model in a service mode in the system to generate common business functions. The business rule models exist in different models, and the base class of each Model is unified, so that the business execution engine can automatically adapt to each Model. The generation of the business logic rule is realized based on the Freemarker technology, so that the expandability of each business model is ensured, and more flexibility is increased.
Generating and executable business logic by using a business execution engine according to the business logic model through semantic analysis on the business model; .
And the data access engine module is used for performing increasing, deleting, modifying and checking operation on the data according to the generated business logic based on the JDBC protocol. The data access engine provides parsing of the data model, performs processing of results according to associated business rules, and provides support for connection management, transaction management, configuration loading, and caching processing of data sources to provide a basis for operation of the data access engine.
Through semantic analysis of the data model, the data access engine performs data adding, deleting, modifying and checking operations according to the generated business logic based on the JDBC protocol.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.