Disclosure of Invention
Aiming at one or more problems in the prior art, the invention provides a rapid development framework of inventory management software of a process manufacturing enterprise and a development method thereof by combining with the design development environment of industrial APP application software, which help developers to rapidly develop the inventory management software of the process manufacturing enterprise without mastering special software knowledge, simultaneously rapidly construct a business application interface by means of a visual component technology, rapidly construct a business process model by means of a workflow technology, loosely couple the inside of the development framework by using a micro-service framework, improve the flexibility and expansibility of the development framework, and reduce development cost and development technology threshold.
The technical solution for realizing the purpose of the invention is as follows:
according to one aspect of the invention, a rapid development framework for process manufacturing enterprise inventory management software includes:
The interface layer is used for quickly constructing a business interface of the inventory management software of the process manufacturing enterprise, and a plurality of foundation components are arranged in the interface layer;
The service layer is used for completing the business process of inventory management in the process of flow production and manufacturing, processing the data request submitted by the interface layer and submitting the data to be saved to the database, and the service layer is internally provided with a micro-service architecture;
the data layer is used for carrying out data acquisition and data modeling on the inventory management related information in the process of flow production and manufacturing and carrying out real-time interaction data with the interface layer and the service layer, and comprises a MySQL database and an object model management module, wherein the basic component of the interface layer and the micro-service architecture of the service layer access the database through the object model management module.
Furthermore, the interface layer comprises basic components such as a chart component library, a form component library and a graphic element component library, wherein the chart component library, the form component library and the graphic element component library all adopt MVVM architecture to separate and decouple the user interface from the business logic of the inventory management software.
Furthermore, the quick development framework of the inventory management software of the flow manufacturing enterprise comprises a chart component library, a form component library and a graphic component library, wherein the chart component library comprises components such as a line graph, a curve graph, a column graph, an area graph, a scatter graph and the like, the form component library comprises components such as a table, an input frame, a drop-down frame, buttons, labels and the like, and the graphic component library comprises components such as irregular graphs, circles, rectangles, ellipses, rounded corner rectangles, regular polygons, triangles, circular arcs, characters, connecting lines, pictures, data connection, line segments and the like.
Furthermore, the invention provides a quick development framework of the inventory management software of the flow manufacturing enterprise, and the micro-service framework of the service layer adopts Spring Cloud as the micro-service framework.
Further, the service layer includes an organization management micro-service, a personnel management micro-service and a workflow micro-service, wherein:
The organization management micro-service is used for constructing and managing the organization and the post of the enterprise related inventory management according to the human resource relationship of the enterprise;
A personnel management micro-service for managing personnel information related to inventory management responsibilities and businesses in the manufacturing process in the enterprise;
The workflow microservice is used for constructing a business flow model in each business link of inventory management of a flow manufacturing enterprise, forming a complete workflow by making business rules, extracting business logic processed by a system from a program code and converting the business logic into simple business rules, and representing business behaviors by structured business rule data.
Further, the object model management module adopts an object-oriented mode to operate the persistent objects and convert the operations into the SQL operation of the bottom layer, wherein the persistent objects comprise creation, modification, deletion and query.
According to another aspect of the present invention, a method for developing inventory management software of a process manufacturing enterprise, based on a rapid development framework of inventory management software of any one of the above process manufacturing enterprise, includes a front-end construction and a back-end construction, wherein:
The front end is constructed to be used for constructing an interface of inventory management software, the front end is modularized, combinable, reusable and maintainable components are created, and a view interface is formed in a rapid development framework through nested splicing components;
The back end builds a business process for building inventory management software, converts a business rule of inventory management in the actual production process into a BPMN model required by a workflow engine, and builds a business process model according to the BPMN model in workflow micro-services of a rapid development framework.
Further, the development method of the inventory management software of the flow manufacturing enterprise specifically comprises the following steps:
step 1, analyzing specific business and functional requirements of a process manufacturing enterprise on inventory management software in a production process, and extracting an entity relation diagram;
step 2, establishing a conceptual model of the database according to the entity relation diagram, establishing a data model instance through the object model management module, and configuring a data structure of instance attributes;
Step3, using a component library in a rapid development framework or calling a third party component library, rapidly constructing an application interface of inventory management software business in the production and manufacturing process of a flow manufacturing enterprise in a dragging and attribute configuration mode, or completing logic association of various business interfaces and addition, deletion and correction of various attribute data tables in the production and manufacturing process by writing script codes;
Step 4, constructing an organization and post related to inventory management of the production and manufacturing process in an enterprise by using an organization management micro-service, and quickly constructing a business flow model of inventory management software by using personnel information related to inventory management responsibilities and business of the production and manufacturing process in the enterprise by using personnel management micro-service, and drag and attribute configuration in a workflow micro-service;
And 5, performing systematic testing, and completing software development if the testing is passed.
Compared with the prior art, the technical scheme provided by the invention has the following technical effects:
1. The technical scheme of the invention provides a rapid development framework of inventory management software of a process manufacturing enterprise by utilizing a visual component technology and a workflow technology, and the development framework is loosely coupled by using a micro-service framework, so that the flexibility and expansibility of the development framework are improved, and the development difficulty of the inventory management software of the process manufacturing enterprise is effectively reduced.
2. The rapid development framework of the inventory management software of the flow manufacturing enterprise provided by the invention enables a developer to perform rapid data modeling and rapid construction of interfaces and business flow models by distinguishing front-end interface logic from back-end flow business logic, thereby realizing rapid development of the inventory management software applicable to different flow production manufacturing process scenes.
3. The quick development framework of the inventory management software of the process manufacturing enterprise can enable personnel with few or even no programming foundation to quickly develop various inventory management software suitable for scene requirements of the process manufacturing enterprise through dragging and attribute configuration software development modes.
Detailed Description
For a further understanding of the present invention, preferred embodiments of the invention are described below in conjunction with the examples, but it should be understood that these descriptions are merely intended to illustrate further features and advantages of the invention, and are not limiting of the claims of the invention.
A rapid development framework for process manufacturing enterprise inventory management software, comprising:
And the interface layer is used for quickly constructing a business interface of the inventory management software of the flow manufacturing enterprise. The interface layer comprises basic components such as a chart component library, a form component library and a graphic element component library, wherein the chart component library, the form component library and the graphic element component library all adopt MVVM architecture to separate and decouple the user interface from the business logic of the inventory management software. The chart component library comprises components such as a line graph, a curve graph, a column graph, an area graph, a scatter graph and the like, the form component library comprises components such as a table, an input frame, a drop-down frame, buttons, labels and the like, and the primitive component library comprises components such as irregular graphs, circles, rectangles, ellipses, rounded rectangles, regular polygons, triangles, circular arcs, characters, connecting lines, pictures, data connection, line segments and the like.
The service layer is used for completing the business process of inventory management in the process of flow production and manufacturing, processing the data request submitted by the interface layer and submitting the data to be saved to the database. The service layer comprises an organization management micro-service, a personnel management micro-service and a workflow micro-service, and a micro-service architecture of the service layer adopts Spring Cloud as a micro-service framework. The system comprises a business process management system, a business process management micro-service, a workflow micro-service and a workflow micro-service, wherein the business process management micro-service is used for constructing and managing institutions and posts related to inventory management in an enterprise according to human resource relations in the process manufacturing enterprise, the personnel management micro-service is used for managing personnel information related to inventory management responsibilities and businesses in the production manufacturing process in the process manufacturing enterprise, the workflow micro-service is used for constructing a business process model in each business link of inventory management of the process manufacturing enterprise, forming a complete workflow by formulating business rules, extracting business logic processed by the system from program codes and converting the business logic into simple business rules, and representing business behaviors by structured business rule data.
The data layer is used for carrying out data acquisition and data modeling on the inventory management related information in the process of flow production and manufacturing and carrying out real-time interaction data with the interface layer and the service layer, and comprises a MySQL database and an object model management module, wherein the basic component of the interface layer and the micro-service architecture of the service layer access the database through the object model management module. The object model management module operates on persistent objects including create, modify, delete and query in an object-oriented manner and translates these operations into underlying SQL operations.
A development method of inventory management software of a process manufacturing enterprise is based on a rapid development framework of the inventory management software of the process manufacturing enterprise, and comprises front end construction and back end construction, wherein the front end construction comprises construction of an interface of the inventory management software, front end modularization is carried out, combinable, reusable and maintainable components are created, a view interface is formed in the rapid development framework through nested splicing components, the back end construction comprises construction of a business process of the inventory management software, a business rule of inventory management in an actual production process is converted into a BPMN model required by a workflow engine, and a business process model is constructed in workflow micro-service of the rapid development framework according to the BPMN model. The specific development steps comprise:
step 1, analyzing specific business and functional requirements of a process manufacturing enterprise on inventory management software in a production process, and extracting an entity relation diagram;
Step 2, establishing a conceptual model of a database by adopting an entity relation diagram, creating a data model instance by using an object model management module in a data layer, and configuring a data structure of instance attributes;
Step3, using a component library in a rapid development framework or calling a third party component library, rapidly constructing an application interface of inventory management software business in the production and manufacturing process of a flow manufacturing enterprise in a dragging and attribute configuration mode, or completing logic association of various business interfaces and addition, deletion and correction of various attribute data tables in the production and manufacturing process by writing script codes;
Step 4, constructing an organization and post related to inventory management of the production and manufacturing process in an enterprise by using an organization management micro-service, and quickly constructing a business flow model of inventory management software by using personnel information related to inventory management responsibilities and business of the production and manufacturing process in the enterprise by using personnel management micro-service, and drag and attribute configuration in a workflow micro-service;
And 5, performing systematic testing, and completing software development if the testing is passed.
Example 1
Taking a steel stock management service in a process of flow manufacturing as an example, the technical scheme of the invention is adopted to design a layered and flexibly configurable steel stock management software rapid development framework, which is shown in figure 1 and comprises an interface layer, a service layer and a data layer. The interface layer of the steel stock management software rapid development framework is subjected to visual configuration design based on component technology, and a service application interface can be rapidly constructed by dragging components. The service layer of the steel stock management software rapid development framework is designed based on a micro-service architecture, so that each service has a database belonging to the service layer, and in the micro-service architecture, if any one service needs to be added with a certain function, the required function is only added to the service, and the whole process is not influenced. The data layer of the rapid development framework of the steel stock management software comprises data storage and data persistence functions, and the database can be added, deleted, changed and checked through an object model management module of a development environment.
Specifically, the interface layer of the steel stock management software comprises a chart component library, a form component library and a graphic primitive component library, wherein the chart component library is used for realizing the rapid construction of the service interface of the steel stock management software, the chart component library comprises components such as a line graph, a curve graph, a column graph, an area graph, a scatter graph and the like, the form component library comprises components such as a table, an input frame, a drop-down frame, a button, a label and the like, and the graphic primitive component library comprises components such as an irregular graph, a circle, a rectangle, an ellipse, a fillet rectangle, a regular polygon, a triangle, a circular arc, characters, connecting lines, pictures, data connection, line segments and the like. Taking a line diagram as an example, when the component is used, a data source is required to be bound, the data source is required to be a steel stock management object attribute of which data modeling is completed in an object management module, then attribute configuration is carried out, and the operation of attributes such as font size, font color, background color, alignment mode and the like can be carried out on parameters such as a title, a style, a legend, an XY axis, a label and the like of the line diagram. The components used can be preset components in the steel stock management development framework, and can also be called by a developer in a third party component library. In addition, when the current attribute configuration cannot meet the interface logic requirement of a developer, a small amount of script codes can be written in a script editor to realize various page interaction functions (such as new addition, modification, deletion and creation of steel information).
The design framework of the visual component library is shown in fig. 2, and comprises the component library, an editor, a JSON Schema and a server. Building a library of components requires the development of two code programs, one about the component itself and the other about a configuration panel used to configure the properties of the component. The components have two functions, namely one is provided for an editor so that the components can be displayed on a drawing board, and the other is provided for a server to be inserted as a script after the components are packaged. The configuration panel of the component generates JSON data through registering in the editor, then analyzes the JSON data of the item when the server side renders, and finally renders the page.
Specifically, the service layer of the steel stock management software comprises an organization management micro-service, a personnel management micro-service and a workflow micro-service, and is used for realizing the business flow of steel stock management. The system comprises a management micro service, a personnel management micro service, a workflow micro service, a service flow engine and a service flow module, wherein the management micro service is used for realizing the construction and management of a mechanism and posts related to inventory management in an enterprise according to the human resource relation of the enterprise, the personnel management micro service is used for managing personnel information related to steel inventory management responsibilities and services in the enterprise, the workflow micro service is used for integrating an activity workflow engine in a micro service framework and constructing a service flow model in each service link of steel inventory management, and a complete workflow is formed by formulating service rules, so that the whole service process runs smoothly and correctly, service logic processed by the system is extracted from program codes and is converted into simple service rules, and service behaviors are represented by structured service rule data.
In the design process, spring Cloud is selected as a micro-service framework, and some excellent micro-service frameworks such as service discovery, service registration, configuration center, link tracking, exception handling and the like can be integrated into the Spring Cloud for packaging, so that the development cost and difficulty of each module are reduced. Wherein:
The organization management microservices and the personnel management microservices are designed according to RBAC (round-Based Access Control) authority design model by using Spring Security in Spring Cloud in combination with JWT (JSON WEB TOKEN) authentication protocol. The RBAC model comprises contents such as users, roles, rights and the like, can realize the many-to-many relationship between the users and the roles, and has the functions of multiple role attributes and the like for the same user. This concept is utilized to construct an organization architecture at the time of software design, thereby realizing the assignment of role data rights. The user authentication and authorization are based on the token form, after the user succeeds in authentication according to the user name and the password, a series of authority values of the current user role are obtained, the authority list form with the user name as the key and the authority list as the value is stored in the Redis cache, the browser can generate the token according to the related information of the user name, and then the token is recorded in the cookie. When the Spring Security module judges whether the current request has authority access or not, the Spring Security module inserts a token into a header request header of the JWT by default when calling an API interface each time, so that the Spring Security needs to acquire token information from the header request header, then analyzes a current user name from the token information, and can acquire an authority list from a Redis cache according to the user name, thereby enabling the Spring Security module to finish judging the current request access authority. The Token is a string of character strings generated by the server and is used as a Token for the client to request, after the first login, the server generates a Token and returns the Token to the client, and the client only needs to take the Token request data and does not need to use the user name and the password again.
The workflow microservice flow mainly comprises the following parts of (1) flow design and definition, (2) instantiation of the flow and management of flow examples, and (3) interaction of a workflow engine and a user application tool. Wherein:
(1) The process design and definition are that the steel stock management business process is analyzed, a modeling tool of a development environment is adopted to model the steel stock management business process, and an activity workflow engine adopts BPMN2.0 specification to complete the process design. The flow model is a directed model graph built by model elements such as a start event, an end event, a task, an exclusive gateway, a parallel gateway, a sequential flow, a sub-flow, and the like, and is finally converted into a bpmn-format flow model file, and each bpmn file comprises a plurality of flow definitions.
(2) The process instantiation and management comprises the following operations of (a) starting a steel stock management business process instance, namely analyzing bpmn files, instantiating a steel stock management business process according to a defined steel stock management business model, and streaming the steel stock management business process instance to a task staff of a first node, (b) streaming the steel stock management business process instance, namely pushing the process progress to a next node after the task of each node is completed, (c) deleting and canceling the steel stock management business process instance, and (d) distributing and changing operators in the steel stock management business process instance, namely configuring the node attributes according to personnel and post arrangement in the organization management micro-service and personnel management micro-service.
(3) The interaction between the workflow engine and the user application tool mainly comprises the connection of a flow model or an instance and business logic, monitoring of work contents such as flow change and the like.
Specifically, the data layer of the steel stock management software comprises a MySQL database and an object model management module, and the MySQL database and the object model management module access the database to realize database operation and communicate with the service layer and the interface layer component. The object model management module introduces the egg-sequelize plug-in provided by the egg.js official, manipulates persistent objects (e.g., create, modify, delete, and query) in an object-oriented manner, and translates these object-oriented operations into the underlying SQL (Structured Query Language) operations. The data modeling is to convert the E-R relation graph conceptual model extracted after the steel stock management service analysis into a physical model, and a complex model can be constructed through the object instance and the object template of the object model management module. Each object instance is created from an object template. One object template may inherit another object template. When the object template is changed, the changed object template can be synchronized to the object instance inheriting the object template, and the modeling can be conveniently and rapidly maintained. The object templates may categorize categories of object instances. If there are two object instances and they have the same properties, services, and events, they can be modeled as one object template. The object templates are divided into entity templates, form templates and relationship templates. The entity template is an object template of which the platform entity is matched with actual objects in the factory, such as workshops, personnel, equipment, steel products and the like of the factory. Form template, wherein a user can manually create a form structure of the relation data under the form template, each attribute is a list head field, and each object instance is a line of data. And the relationship template is constructed by, for example, associating the attribute of 'company name' under the company template with the attribute of 'personnel name' under the personnel template, and can create an association relationship in the relationship instance.
The concrete flow of developing the steel stock management software by using the rapid development framework of the invention is shown in fig. 3, and the relation diagram of the information flow and the stock management software in the whole production process stock management business flow from raw materials to steel products is shown in fig. 4.
The specific development method is as follows:
step 1, analyzing specific service and functional requirements of steel stock management software, taking raw material ex-warehouse service and steel stock-warehouse service as examples, wherein a raw material ex-warehouse service flow chart is shown in fig. 5, and a steel stock-warehouse service flow chart is shown in fig. 6.
The raw material ex-warehouse business process specifically comprises the following steps:
S1, the production department puts forward a warehouse-out application to the inventory department according to the production plan, and fills in a raw material warehouse-out bill.
And S2, submitting the filled out inventory form to an inventory manager for auditing by the inventory manager. And S2, checking and passing, namely preparing raw material delivery, turning to S3, checking and not passing, and re-filling the raw material delivery bill and re-executing the S2.
S3, checking the raw materials by an inventory service person, passing the checking, and returning the raw materials to the warehouse, S4, and if the checking is not passed, preparing the raw materials again, and returning to the step S2.
S4, changing stock information of the raw materials.
The steel warehousing business process comprises the following specific steps:
and S1, after the steel production is completed, the production department notifies an inventory service person.
S2, checking the produced steel by stock operators. And (3) filling in the warehouse entry form after the inspection is passed, turning to S3, and re-executing S2 after the steel inspection is required to be carried out again if the inspection is not passed.
And S3, submitting the filled-in warehouse entry to an inventory manager for auditing by the inventory manager. And S3, if the auditing is passed, warehousing the steel, and turning to S4, if the auditing is not passed, the warehousing form is required to be refilled, and S3 is executed again.
S4, changing steel stock information.
And 2, establishing a database conceptual model by adopting an E-R relation diagram method in the data model design process, wherein the database conceptual model is respectively a raw material inventory basic data E-R diagram, a steel inventory basic data E-R diagram and a user authority E-R diagram, and the raw material inventory basic data E-R diagram, the steel inventory basic data E-R diagram and the user authority E-R diagram are respectively shown in fig. 7, 8 and 9. The raw material warehouse-out bill has information such as number, name, price and the like, and the steel warehouse-in bill has information such as number, name, type, material and the like. The object model management module is utilized to model the data, and an input-output warehouse entry template is created, so that the data can be accurately collected into the database.
And 3, rapidly constructing a software service interface by using a component library in the development framework through dragging and attribute configuration, and writing a small amount of script codes to complete logical association of the input and output service interface and addition, deletion and verification of various steel attribute data tables.
And 4, firstly, constructing an organization and a post related to inventory management in an enterprise by using an organization management micro-service, then, using personnel information related to steel inventory management responsibilities and services in the personnel management micro-service management enterprise, and finally, quickly constructing a service flow model in a workflow micro-service by means of dragging and attribute configuration. Wherein:
Personnel are assigned job and rights in the organization management microservice and the personnel management microservice, including inventory administrators and inventory service personnel. The inventory manager is mainly responsible for the management of ex-warehouse and warehouse-in and the inquiry of related information, including warehouse entry, audit of ex-warehouse, inquiry, addition, deletion and modification of warehouse information and steel information. The stock salesman is mainly responsible for stock management and related information inquiry, including stock entry, stock out inquiry, addition, deletion, modification, revocation audit, stock inquiry, steel information inquiry, raw material information inquiry and warehouse information inquiry.
And constructing a BPMN flow chart of the raw material ex-warehouse business flow and the steel warehousing business flow by means of the workflow microservice of the development framework and issuing the flow example. In this embodiment, a raw material delivery business process is taken as an example, as shown in fig. 10.
And 5, performing systematic testing on the steel stock management software, wherein the testing is completed through software development.
The description and applications of the present invention herein are illustrative and are not intended to limit the scope of the invention to the embodiments described above. The relevant descriptions of effects, advantages and the like in the description may not be presented in practical experimental examples due to uncertainty of specific condition parameters or influence of other factors, and the relevant descriptions of effects, advantages and the like are not used for limiting the scope of the invention. Variations and modifications of the embodiments disclosed herein are possible, and alternatives and equivalents of the various components of the embodiments are known to those of ordinary skill in the art. It will be clear to those skilled in the art that the present invention may be embodied in other forms, structures, arrangements, proportions, and with other assemblies, materials, and components, without departing from the spirit or essential characteristics thereof. Other variations and modifications of the embodiments disclosed herein may be made without departing from the scope and spirit of the invention.