Summary of the invention
In order to solve in the prior art, when changing due to each software operation demand, require to write a generation again
Code is defined software operation function, and so as to cause the low problem of software development efficiency, the application passes through following embodiment public affairs
Open a kind of software operation functional definition method and system based on modeling.
The application's in a first aspect, disclosing a kind of software operation functional definition method based on modeling, the method packet
It includes:
Software operation functional requirement is obtained, and according to the software operation functional requirement, establishes data model;
According to the software operation functional requirement, operation flow is established;
According to the data model and the operation flow, administrative model is established, the administrative model includes management mould
Type entity and administrative model information;
According to the administrative model, tables of data is generated, the tables of data is for defining software operation function;
According to the tables of data, the definition of the software operation function is completed.
Optionally, described according to the data model and the operation flow, establish administrative model, comprising:
Receive typing data, the data include: the data model essential information and the data model
Attribute information;
The operation flow is tied in the essential information, and search configuration is tied to the attribute information
In, wherein described search is configured to be indexed creation and search to the solid data in the data model.
Optionally, the administrative model information include: typing control information, inquiry control information, flow definition information with
And search for configuration information.
Optionally, the typing control information is used to determine the data of typing;
The inquiry control information is used to determine the querying condition of list, and the list is the entity number of the data model
According to list;
The flow definition information was used in the data inputting stage, and call flow services new Qi Liucheng, and newly opens described
Process is stored in the tables of data;
Described search configuration information is used to judge whether it is data addition index file, the rope in the data filing stage
Quotation part retrieves data for search engine.
Optionally, when needing to distribute the operating right of the software operation function, the method also includes:
The operating right of the software operation function is distributed to designated user.
In the second aspect of the application, discloses a kind of software operation function based on modeling and define system, the system packet
It includes:
Digital-to-analogue model building module, for obtaining software operation functional requirement, and according to the software operation functional requirement,
Establish data model;
Operation flow establishes module, for establishing operation flow according to the software operation functional requirement;
Administrative model establishes module, for establishing administrative model, institute according to the data model and the operation flow
Stating administrative model includes administrative model entity and administrative model information;
Tables of data generation module, for generating tables of data, the tables of data is for defining software according to the administrative model
Business function;
Software operation function definition module, for completing the definition of the software operation function according to the tables of data.
Optionally, the administrative model establishes module and includes:
Data receipt unit, for receiving the data of typing, the data include: the essential information of the data model with
And the attribute information of the data model;
Binding unit for the operation flow to be tied in the essential information, and search configuration is tied to
In the attribute information, wherein described search be configured to be indexed the solid data in the data model creation and
Search.
Optionally, when needing to distribute the operating right of the software operation function, the system also includes: authority distribution
Module, for distributing the operating right of the software operation function to designated user.
A kind of software operation functional definition method and system based on modeling disclosed in the present application, which comprises first
First, software operation functional requirement is obtained, and according to the software operation functional requirement, establishes data model.Secondly, according to described
Software operation functional requirement, establishes operation flow.Then, according to the data model and the operation flow, management is established
Model, the administrative model include administrative model entity and administrative model information.Then, it according to the administrative model, generates
Tables of data, the tables of data is for defining software operation function.Finally, completing the software operation function according to the tables of data
The definition of energy.Software operation function is realized by establishing administrative model according to software operation functional definition method disclosed in the present application
Can definition, it is described establish administrative model during, using data model and operation flow as foundation, so that final software industry
Business function definition becomes procedure, when specific operation, when data model changes, need to only change established administrative model
In corresponding data, can quickly generate tables of data, realize the corresponding tables of data of Dynamic Maintenance and field.With prior art phase
Than defining software operation function without writing a code again, greatly improving the development efficiency of software.Further,
Method disclosed in the present application can be directed to different software operation functional requirements, and the different data models established carry out
Final software operation function definition, therefore, software operation functional definition method disclosed in the present application has versatility, Ke Yiyong
Development cost has greatly been saved in actual software development process in the software development of disparity items.
Specific embodiment
In order to solve in the prior art, when changing due to each software operation demand, require to write a generation again
Code is defined software operation function, and so as to cause the low problem of software development efficiency, the application passes through following embodiment public affairs
Open a kind of software operation functional definition method and system based on modeling.
The application first embodiment discloses a kind of software operation functional definition method based on modeling, shown in Figure 1
Workflow schematic diagram, which comprises
Step S11 obtains software operation functional requirement, and according to the software operation functional requirement, establishes data model.
Wherein, software operation functional requirement is by combing acquired in the original demands of user, and data model is by software
Business function demand is abstracted and the entity relationship data model established, and data model describes the component of software.Establish number
While according to model, it need to determine that the relationship between data model, the relationship between the data model include one-to-one, one-to-many
And the relationship of multi-to-multi.
Step S12 establishes operation flow according to the software operation functional requirement.
Specifically, according to examination & approval or examination & approval link requirement in software operation functional requirement, process for using design tool, if
Meter meets the operation flow of BPMN2.0 specification, distributes processing people or the processing group of each link.BPMN be modeling language standard it
One, for defining business process map, main target is to provide some by the readily comprehensible symbol of all service-users.
Step S13 establishes administrative model, the administrative model packet according to the data model and the operation flow
Include administrative model entity and administrative model information.
Specifically, realizing using the novel modeling tool based on WEB application and establishing administrative model online.Establish management
Model it is to be understood that safeguarded using data of the modeling tool to administrative model entity, modeling tool include increase, delete, changing,
Functions and these functions hiding binding process, search configuration function behind such as look into.
Step S14 generates tables of data, the tables of data is for defining software operation function according to the administrative model.
Shown in Figure 2, Fig. 2 is the administrative model entity, described to generate tables of data according to administrative model, specifically:
Field defined in field defined in administrative model according to Fig.2, " model English name " and administrative model attribute " belongs to
Property English name ", " attribute type ", " attribute length " and " whether must fill out " etc., generate tables of data, and then establish data mould
The relationship of type and tables of data.
Step S15 completes the definition of the software operation function according to the tables of data.
Wherein, the tables of data is for defining software operation function, after the corresponding tables of data of data model generates, software
Business function definition i.e. complete.The software operation function includes: that data inputting, examination & approval, filing, inquiry, flow engine are searched
The functions such as rope and data export.
A kind of software operation functional definition method based on modeling disclosed in the present application, which comprises firstly, obtaining
Software operation functional requirement, and according to the software operation functional requirement, establish data model.Secondly, according to the software industry
Business functional requirement, establishes operation flow.Then, according to the data model and the operation flow, administrative model is established, institute
Stating administrative model includes administrative model entity and administrative model information.Then, according to the administrative model, tables of data is generated,
The tables of data is for defining software operation function.Finally, completing determining for the software operation function according to the tables of data
Justice.Realize that software operation function is fixed by establishing administrative model according to software operation functional definition method disclosed in the present application
Justice, it is described establish administrative model during, using data model and operation flow as foundation, so that final software operation function
Can define becomes procedure, when specific operation, when data model changes, need to only change phase in established administrative model
The data answered can quickly generate tables of data, realize the corresponding tables of data of Dynamic Maintenance and field.Compared with prior art,
Software operation function is defined without writing a code again, greatly improves the development efficiency of software.Further, this Shen
Method that please be disclosed can be directed to different software operation functional requirements, and the different data models established carry out final
Software operation function definition, therefore, software operation functional definition method disclosed in the present application have versatility, can be used for not
Development cost has greatly been saved in actual software development process with the software development of project.
Moreover, in the prior art, after completing software function definition, need to shut down or stop all and externally service,
After being updated, software publication, the inefficiency of software publication can be carried out.And it is provided herein based on the soft of modeling
Part business function defines method, soft by dynamic definition without re-written code when function changes without shutting down publication
Part business function can be realized quick definition and not shut down real-time release, not only reduce the output of software to technical staff
The dependence of quantity, improves the efficiency of software publication, and can support the definition of complicated software operation function.
A kind of software operation functional definition method based on modeling disclosed in the present application, can use different supports
The language of WEB webpage development realizes the language such as modeling function, such as java, c#, php and python.
Further, described according to the data model and the operation flow, establish administrative model, comprising:
Receive typing data, the data include: the data model essential information and the data model
Attribute information.
The operation flow is tied in the essential information, and search configuration is tied to the attribute information
In, wherein described search is configured to be indexed creation and search to the solid data in the data model.
Specifically, carrying out data inputting using the novel modeling tool based on WEB application, operation flow is bound and searched
Rope configuration binding.
Further, shown in Figure 3, the administrative model information include: typing control information, inquiry control information,
Flow definition information and search for configuration information.
Software operation functional definition method provided by the present application based on modeling, administrative model information is classified, energy
Enough realize the definition and use of different function.
Further, the typing control information is used to determine the data of typing.
Specifically, typing control information can be with the field of manual entry for determination, the verification of typing form and typing
Rule.
The inquiry control information is used to determine the querying condition of list, and the list is the entity number of the data model
According to list.
In addition, inquiry control information is also used to determine the typing form of list query condition, displaying Fields and order etc..
The flow definition information was used in the data inputting stage, and call flow services new Qi Liucheng, and newly opens described
Process is stored in the tables of data.
It is described newly open process as flow instance deposit tables of data in, during workflow, according to flow instance with
Flow definition information carries out the circulation of list and the inquiry of flow chart.During establishing administrative model, Business Stream is bound
Journey, it is determined that model to flow definition, list to flow instance corresponding relationship, the procedure business function for realizing software are fixed
Justice.
Described search configuration information is used to judge whether it is data addition index file, the rope in the data filing stage
Quotation part retrieves data for search engine.
During establishing administrative model, scan for configuring, realize procedure configuration files dynamic modification in real time
It updates, when data filing, search engine is added according to search for configuration information, realize the function of search definition of software.
Further, when needing to distribute the operating right of the software operation function, the method also includes:
The operating right of the software operation function is distributed to designated user.
Wherein, after the completion of the definition of software operation function, by its authority distribution to user or role, corresponding user and angle
Color just has the operating right of the business function.
Following is the application system embodiment, can be used for executing the application embodiment of the method.It is real for the application system
Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Correspondingly, another embodiment of the application, which discloses a kind of software operation function based on modeling, defines system, referring to fig. 4
Shown in structural schematic diagram, the system comprises:
Digital-to-analogue model building module 10, for obtaining software operation functional requirement, and according to the software operation function need
It asks, establishes data model;
Operation flow establishes module 20, for establishing operation flow according to the software operation functional requirement;
Administrative model establishes module 30, for establishing administrative model according to the data model and the operation flow,
The administrative model includes administrative model entity and administrative model information;
Tables of data generation module 40, for generating tables of data according to the administrative model, the tables of data is soft for defining
Part business function;
Software operation function definition module 50, for completing the definition of the software operation function according to the tables of data.
Further, structural schematic diagram shown in Figure 5, the administrative model establish module 30 and include:
Data receipt unit 301, for receiving the data of typing, the data include: the basic letter of the data model
The attribute information of breath and the data model;
Binding unit 302 for the operation flow to be tied in the essential information, and search configuration is bound
To in the attribute information, wherein described search is configured to be indexed creation to the solid data in the data model
And search.
Further, when needing to distribute the operating right of the software operation function, the system also includes: permission point
With module, for distributing the operating right of the software operation function to designated user.
Combine detailed description and exemplary example that the application is described in detail above, but these explanations are simultaneously
It should not be understood as the limitation to the application.It will be appreciated by those skilled in the art that without departing from the application spirit and scope,
A variety of equivalent substitution, modification or improvements can be carried out to technical scheme and embodiments thereof, these each fall within the application
In the range of.The protection scope of the application is determined by the appended claims.