Disclosure of Invention
The invention mainly aims to solve the problem of low project development efficiency caused by inflexibility and no visualization of project development configuration.
The first aspect of the present invention provides a visual service configuration method, including:
acquiring a business process of a project, and setting a process node to be developed according to the business process;
setting business functions to be developed for each flow node;
setting a service, a page and elements to be developed for each flow node according to the service function;
setting configurable function points to be developed according to the services, pages and elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
traversing a function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
and configuring the flow node on a preset visual console through a preset configuration file and the standard function point, wherein the configuration file is used for indicating the mode and the condition for editing the standard function point corresponding to the flow node to be in line with the operation flow of the service product.
Optionally, in a first implementation manner of the first aspect of the present invention, before the acquiring a service flow of a project and setting a flow node to be developed according to the service flow, the visual service configuration method includes:
respectively creating function trees corresponding to standard nodes, standard components, standard pages and standard elements in a preset library;
and storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, in a second implementation manner of the first aspect of the present invention, after the storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library, the visualized service configuration method includes:
configuring a dependency service for nodes in the standard node library, wherein the dependency service is used for indicating each flow node of the business product implementation flow;
configuring dependency relationships for components in the standard component library, wherein the components comprise a user interface component, a business logic component, a service component and a database component;
And performing standardized definition on elements in the standard element library, wherein the elements comprise fields.
Optionally, in a third implementation manner of the first aspect of the present invention, after the configuring processing is performed on the flow node on a preset visualization console through a preset configuration file and the standard function point, the visualized service configuration method includes:
detecting whether the flow node is performing configuration updating;
when the process node is detected to be updated in configuration, judging whether the dependent service corresponding to the process node before updating configuration is allowed to be added or moved in configuration updating;
if the dependent service corresponding to the process node before updating configuration is judged to be allowed to be newly added or moved when configuration updating is carried out, a process configuration file of the project is obtained, the dependent service is newly added or moved according to the process configuration file, and the process configuration file comprises process node information of the business process and operation sequence of the business process.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after the adding or moving the dependent service according to the flow configuration file, the visualized service configuration method includes:
Acquiring a new version of the item after the configuration update of the flow node, and acquiring a history version of the item before the configuration update;
version isolation is added between the new version and the historical version.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the configuring processing is performed on the flow node on a preset visualization console through a preset configuration file and the standard function point, the visualized service configuration method includes:
monitoring whether the visual console has operation abnormality and/or information abnormality in the process of carrying out configuration processing on the flow node;
if the operation abnormality and/or information abnormality exist in the process of configuring and processing the flow node by the visual console, generating abnormality information and carrying out early warning according to the abnormality information.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the configuring processing is performed on the flow node on a preset visualization console through a preset configuration file and the standard function point, the visualized service configuration method includes:
acquiring development requirements of the project, and acquiring configuration processing procedures of configuration processing of flow nodes to be examined and approved, wherein the development requirements comprise characteristics and functions of the project;
And setting an approval node in the configuration processing process according to the development requirement, wherein the approval node is used for approval and confirmation of a user.
The second aspect of the present invention provides a visualized service configuration device, including:
the first setting module is used for acquiring the business process of the project and setting process nodes to be developed according to the business process;
the second setting module is used for setting service functions to be developed for each flow node;
the third setting module is used for setting the service, the page and the element to be developed for each flow node according to the business function;
the fourth setting module is used for setting configurable function points to be developed according to the services, the pages and the elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the traversing module is used for traversing the function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
The first configuration processing module is used for carrying out configuration processing on the flow node on a preset visual console through a preset configuration file and the standard function points, wherein the configuration file is used for indicating the mode and the condition for editing the standard function points corresponding to the flow node to be in line with the operation flow of the business product.
Optionally, in a first implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the creation module is used for respectively creating function trees corresponding to standard nodes, standard components, standard pages and standard elements in the preset library;
and the storage module is used for storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, in a second implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the first configuration module is used for configuring the dependency service for the nodes in the standard node library, and the dependency service is used for indicating each flow node of the business product implementation flow;
the second configuration module is used for configuring the dependency relationship for the components in the standard component library, and the components comprise a user interface component, a business logic component, a service component and a database component;
And the definition module is used for carrying out standardized definition on the elements in the standard element library, wherein the elements comprise fields.
Optionally, in a third implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the detection module is used for detecting whether the flow node is in configuration updating;
the judging module is used for judging whether the dependent service corresponding to the flow node before updating configuration is allowed to be added or moved when the configuration is updated when the flow node is detected to be updated in configuration;
and the processing module is used for acquiring a flow configuration file of the project if judging that the dependent service corresponding to the flow node before updating configuration is allowed to be newly added or moved when the configuration is updated, and carrying out the new addition or movement on the dependent service according to the flow configuration file, wherein the flow configuration file comprises flow node information of the business flow and the operation sequence of the business flow.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the first acquisition module acquires a new version of the item after the configuration update of the flow node, and acquires a history version of the item before the configuration update;
And the adding module is used for adding version isolation between the new version and the historical version.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the monitoring module is used for monitoring whether the visual console has operation abnormality and/or information abnormality in the process of carrying out configuration processing on the flow nodes;
and the early warning module is used for generating abnormal information and carrying out early warning according to the abnormal information if the visual console is monitored to have operation abnormality and/or information abnormality in the process of carrying out configuration processing on the flow node.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the visualized service configuration device includes:
the second acquisition module is used for acquiring development requirements of the project and acquiring a configuration processing process of configuration processing of a flow node to be examined and approved, wherein the development requirements comprise characteristics and functions of the project;
the second configuration processing module is used for setting an approval node in the configuration processing process according to the development requirement, and the approval node is used for a user to approve and confirm.
A third aspect of the present invention provides a visualized service configuration device, including: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; the at least one processor invokes the instructions in the memory to cause the visualized service configuration device to perform the visualized service configuration method described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the above-described visualized service configuration method.
In the technical scheme provided by the invention, the business process of the project is obtained, and the process node to be developed is set according to the business process; setting business functions to be developed for each flow node; setting a service, a page and elements to be developed for each flow node according to the service function; setting configurable function points to be developed according to the services, pages and elements to be developed; traversing the function tree in the preset library to obtain standard function points corresponding to the configurable function points in the function tree; and carrying out configuration processing on the flow nodes on a preset visual console through the preset configuration files and the standard function points. According to the embodiment of the invention, aiming at the flexible configuration scheme of the project, the method adapts to the customized requirements of various Internet product sales scenes, can support the rapid implementation of the project and can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, the flexible and visual development configuration of the project is realized, the code multiplexing rate is high, the project development efficiency is greatly improved, and the problems of inflexibility in project development configuration and low project development efficiency caused by no visualization are solved.
Detailed Description
The embodiment of the invention provides a visualized service configuration method, device, equipment and storage medium, which are suitable for customized requirements of various Internet product sales scenes aiming at a flexible configuration scheme of a project, can support rapid implementation of the project on line, can support differentiated configuration of nodes, components, pages and elements for each project to be developed, realize flexible and visualized project development configuration, have high code multiplexing rate, and greatly improve the efficiency of the project development, thereby solving the problems of inflexibility of the project development configuration and low project development efficiency caused by no visualization.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and one embodiment of a visualized service configuration method in an embodiment of the present invention includes:
101. acquiring a business process of a project, and setting a process node to be developed according to the business process;
inputting information of a project into a preset project development platform, reading the information of the project through the project development platform by a server, extracting characteristics of a business process from the information of the project according to preset extraction conditions, obtaining characteristics of the business process, and setting process nodes to be developed of the project according to the characteristics of the business process. The extraction condition may be a preset word or sentence related to the process, and a condition to be met corresponding to the word or sentence.
102. Setting business functions to be developed for each flow node;
the server analyzes the business function requirements of the project information, obtains the business function requirements, classifies and predicts the business function requirements through a preset classification algorithm, obtains the business functions to be developed of each flow node, and creates the business function configuration file of each flow node, thereby realizing the setting of the business functions to be developed for each flow node.
103. Setting a service, a page and elements to be developed for each flow node according to the service function;
the server performs data cleaning, data integration, data transformation and data preprocessing on various service product information in various service fields collected in various network platforms or other channels to obtain initial data, performs feature extraction on the initial data to obtain feature information, classifies the feature information to obtain classification information, wherein the classification information is a field (namely an element) of each flow node corresponding to various service product operation flows, a preset service function configuration table is traversed according to the classification information and service functions, the service function configuration table comprises service functions, element items (corresponding to the classification information), page items and service items, configuration items corresponding to the service functions and the classification information are obtained from the service function configuration table, and corresponding page information and service information are extracted from the configuration items, so that service, page and element to be developed are set for each flow node according to the service functions.
104. Setting configurable function points to be developed according to services, pages and elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the server retrieves preset setting texts according to the service to be developed, the page and the elements to obtain a node to be configured, a component to be configured, a page to be configured and the elements to be configured, wherein the setting texts are used for indicating and connecting and calling the operation relation and the operation condition of the service to be developed, the page and the elements to be developed, creating a first corresponding relation between the node to be configured and the elements to be configured and a second corresponding relation between the elements to be configured and the pages to be configured according to the setting texts, creating a third corresponding relation between the component to be configured and the components to be configured, the pages to be configured and the elements to be configured respectively, and selecting the corresponding elements to be configured by the component to be configured according to the nodes to be configured through the first corresponding relation, the second corresponding relation and the third corresponding relation, and calling the selected elements to be configured to the corresponding pages to be configured.
105. Traversing a function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
The method comprises the steps that a standard node library, a standard component library, a standard page library and a standard element library respectively correspond to one function tree, a server classifies and marks configurable function points to obtain node labels, component labels, page labels and element notes respectively, the corresponding function trees are selected through the node labels, the component labels, the page labels and the element notes, and hierarchical node analysis is conducted on the function trees through a breadth-first search algorithm to obtain standard nodes, standard components, standard pages and standard elements which are in one-to-one correspondence with nodes to be configured, components to be configured, pages to be configured and elements to be configured.
106. And carrying out configuration processing on the flow node on a preset visual console through a preset configuration file and standard function points, wherein the configuration file is used for indicating a mode and a condition for editing the standard function points corresponding to the flow node to be in line with the operation flow of the business product.
The method comprises the steps that standard function points are selected on a preset visual console, a server receives the standard function points selected by the preset visual console, a preset configuration file is called, key values of the selected standard function points are generated, the configuration file is searched through the key values, the mode and conditions corresponding to the standard function points in the configuration file and conforming to the operation flow of a service product are obtained, the standard function points are configured and processed according to the mode and conditions through an embedded control SDK, so that the differential configuration of node elements and flow nodes is realized, the influence of flow update of the service product on online customer groups is reduced, the acquisition of designated fields is reduced, the development period is shortened, the code multiplexing rate is high, and the efficiency of project development is improved.
The method comprises the steps of determining configurable function points to be developed according to a business process of a project to be developed, and acquiring corresponding standard nodes, standard components, standard pages and standard elements from a standard node library, a standard component library, a standard page library and a standard element library which are constructed in advance; and according to the flow nodes, the acquired standard nodes, standard components, standard pages and standard elements, carrying out configuration development on each flow node on a preset visual interface. Specifically, the preset visual interface may be a development interface of a visual console for developing a project.
According to the embodiment of the invention, aiming at the flexible configuration scheme of the project, the method adapts to the customized requirements of various Internet product sales scenes, can support the rapid implementation of the project and can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, the flexible and visual development configuration of the project is realized, the code multiplexing rate is high, the project development efficiency is greatly improved, and the problems of inflexibility in project development configuration and low project development efficiency caused by no visualization are solved.
Referring to fig. 2, another embodiment of a visualized service configuration method in an embodiment of the present invention includes:
201. Acquiring a business process of a project, and setting a process node to be developed according to the business process;
specifically, before acquiring a business process of a project and setting a process node to be developed according to the business process, the server respectively creates functional trees corresponding to standard nodes, standard components, standard pages and standard elements in a preset library, and stores the functional trees in corresponding storage spaces in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
The server analyzes the standard nodes, standard components, standard pages and standard elements in the preset library respectively through a decision tree algorithm or a random forest algorithm to respectively create functional trees, correspondingly stores the functional trees corresponding to the standard nodes, standard components, standard pages and standard elements in each storage space pre-created in the memory key value database Redis to obtain a standard node library, a standard component library, a standard page library and a standard element library, and rapidly configures the standardized nodes, components, pages and elements in the whole development process of the target by pre-constructing the standard node library, the standard component library, the standard page library and the standard element library, so that rapid and flexible configuration is realized, and the development and configuration efficiency of projects is greatly improved. Specifically, the standard node library may include a corresponding standard component, the standard component includes a corresponding standard page, the standard page includes a corresponding standard element, and the standard node library, the standard component library, the standard page library and the standard element library may be independent of each other or may have an inclusion relationship. And according to each project to be developed, the content of the corresponding standard node, standard component, standard page and standard element can be directly matched from the standard node library, standard component library, standard page library and standard element library according to specific development requirements, so that the multiplexing rate of code development is greatly improved.
Optionally, after the server stores the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library, the server configures a dependent service for nodes in the standard node library, wherein the dependent service is used for indicating each flow node of the implementation flow of the business product; configuring dependency relationships for components in a standard component library, wherein the components comprise a user interface component, a business logic component, a service component and a database component; elements in the standard element library are defined in a standardized way, and the elements comprise fields.
After the server builds the standard node library, the standard component library, the standard page library and the standard element library, corresponding dependent services are configured for relevant nodes in the standard node library according to development requirements, wherein the dependent services are all flow nodes of a business product implementation flow, for example: approval nodes for face recognition, personal information verification, danger production and credit enhancement and the like in borrower qualification approval links; the borrower information acquisition process comprises acquisition nodes for identity information registration, work information registration, spouse information registration and the like, so that the connection relationship among the nodes is more clear. Further, according to development requirements, the dependency relationship is configured for the components in the standard component library, and each component in the standard component library can be relatively independent or can be configured, wherein the components comprise a User Interface (UI), a business logic component, a service component and a database component. Furthermore, according to development requirements, standardized definition is carried out on elements in a standard element library, namely, a company-level standard element library can be established in advance, and uniform definition and consistent source of elements in all upstream and downstream systems are ensured. Configuration can be accomplished in a visualization console for development of the project and elements in a standard library of elements can be delivered to the upstream and downstream systems where the relevant elements are needed in a data synchronization or the like, wherein the elements include fields including display, editable, fill-in, etc. options. In the embodiment, through pre-developing or processing each content in the constructed standard node library, standard component library, standard page library and standard element library, the node, component, page and element attributes for configuration are perfect, and a foundation is laid for the visual development configuration of projects.
202. Setting business functions to be developed for each flow node;
the server analyzes the business function requirements of the project information, obtains the business function requirements, classifies and predicts the business function requirements through a preset classification algorithm, obtains the business functions to be developed of each flow node, and creates the business function configuration file of each flow node, thereby realizing the setting of the business functions to be developed for each flow node.
203. Setting a service, a page and elements to be developed for each flow node according to the service function;
the server performs data cleaning, data integration, data transformation and data preprocessing on various service product information in various service fields collected in various network platforms or other channels to obtain initial data, performs feature extraction on the initial data to obtain feature information, classifies the feature information to obtain classification information, wherein the classification information is a field (namely an element) of each flow node corresponding to various service product operation flows, a preset service function configuration table is traversed according to the classification information and service functions, the service function configuration table comprises service functions, element items (corresponding to the classification information), page items and service items, configuration items corresponding to the service functions and the classification information are obtained from the service function configuration table, and corresponding page information and service information are extracted from the configuration items, so that service, page and element to be developed are set for each flow node according to the service functions.
204. Setting configurable function points to be developed according to services, pages and elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the server retrieves preset setting texts according to the service to be developed, the page and the elements to obtain a node to be configured, a component to be configured, a page to be configured and the elements to be configured, wherein the setting texts are used for indicating and connecting and calling the operation relation and the operation condition of the service to be developed, the page and the elements to be developed, creating a first corresponding relation between the node to be configured and the elements to be configured and a second corresponding relation between the elements to be configured and the pages to be configured according to the setting texts, creating a third corresponding relation between the component to be configured and the components to be configured, the pages to be configured and the elements to be configured respectively, and selecting the corresponding elements to be configured by the component to be configured according to the nodes to be configured through the first corresponding relation, the second corresponding relation and the third corresponding relation, and calling the selected elements to be configured to the corresponding pages to be configured.
205. Traversing a function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
The method comprises the steps that a standard node library, a standard component library, a standard page library and a standard element library respectively correspond to one function tree, a server classifies and marks configurable function points to obtain node labels, component labels, page labels and element notes respectively, the corresponding function trees are selected through the node labels, the component labels, the page labels and the element notes, and hierarchical node analysis is conducted on the function trees through a breadth-first search algorithm to obtain standard nodes, standard components, standard pages and standard elements which are in one-to-one correspondence with nodes to be configured, components to be configured, pages to be configured and elements to be configured.
206. Configuring the flow nodes on a preset visual console through preset configuration files and standard function points, wherein the configuration files are used for indicating the mode and the condition of editing the standard function points corresponding to the flow nodes to be in line with the operation flow of the business product;
optionally, after the server configures the flow node on the preset visual console through the preset configuration file and the standard function point, the server also monitors whether operation abnormality and/or information abnormality exists in the process of configuring the flow node by the visual console; if the monitoring visual console has operation abnormality and/or information abnormality in the process of carrying out configuration processing on the flow node, generating abnormality information and carrying out early warning according to the abnormality information.
The server monitors operation abnormality and/or information abnormality in the visual configuration development process of the project in real time, if the operation abnormality and/or information abnormality is detected by monitoring, abnormal information is generated, the abnormal information can comprise abnormal operation and/or information and corresponding abnormality reasons and abnormal degrees, and abnormal prompt information (namely early warning) is sent according to the abnormal information so as to remind current development configurators of abnormality in the current configuration process, so that probability of misoperation of related developers is reduced, and project development reliability is improved.
Optionally, after the server configures the flow point through a preset configuration file and a standard function point, the server also obtains the development requirement of the project, and obtains the configuration processing process of configuring the flow node to be examined and approved, wherein the development requirement comprises the characteristics and the functions of the project; and setting an approval node in the configuration processing process according to the development requirement, wherein the approval node is used for a user to approve and confirm.
The server sets an approval node in a process node link requiring approval of a certain process node according to the development requirement of the project, wherein the approval node is used for approval and confirmation of a user, namely, aiming at the development requirement of the project, an approval chain link can be added to avoid misoperation of related developers, and the development reliability of the project is further ensured.
207. Detecting whether a flow node is performing configuration updating;
the server monitors and detects the configuration operation condition of the flow node all the time by calling a preset monitoring tool after the configuration processing is carried out on the flow node on a preset visual console through a preset configuration file and a standard function point so as to analyze whether the flow node is being subjected to configuration updating or not in real time.
208. When detecting that the flow node is carrying out configuration updating, judging whether the corresponding dependent service of the flow node before updating configuration is allowed to be added or moved when the configuration updating is carried out;
when a server detects that a certain flow node is updated and configured, input business information is acquired, the business information is the business information about the product operation flow extracted from the input business product information, target key values of the business information and the flow node are created, a preset flow node table is searched through the target key values, the flow node table is used for each configuration dependent service (namely, the flow node information) corresponding to each business product, first flow node information corresponding to the business information and the flow node before updating and second flow node information corresponding to the flow node after updating and configuring are acquired from the flow node table respectively, the first flow node information and the second flow node information are subjected to comparison analysis and classification to obtain new flow node information and mobile flow node information, the new flow node information is the flow node information corresponding to the second flow node information, the mobile flow node information is the flow node information with the connection position change, and whether the new flow node is allowed to be updated or mobile when the configuration is allowed or not is updated by the corresponding to the second flow node.
209. If the dependent service corresponding to the flow node before updating configuration is judged, and new addition or movement is allowed when configuration updating is carried out, a flow configuration file of the project is obtained, the dependent service is added or moved according to the flow configuration file, and the flow configuration file comprises flow node information of the business flow and operation sequence of the business flow.
The server judges whether the process node is allowed to be newly added or moved when the configuration is updated, if the process node is judged to be allowed to be newly added or moved when the configuration is updated, the new process node information and the mobile process node information are acquired, and the new process node information and the mobile process node information are newly added or moved to the corresponding positions of the corresponding process nodes. By detecting that the configuration updating is carried out on the flow nodes and carrying out new addition or movement on the dependent services according to project requirements, the configuration flexibility of project development is enhanced, the business development flow of the project products is spliced rapidly and accurately, and the efficiency of project development is effectively improved.
Optionally, after the server adds or moves the dependent service according to the flow configuration file, acquiring a new version of the item after the configuration update of the flow node, and acquiring a historical version of the item before the configuration update; version isolation is added between the new version and the historical version.
After a certain process node is updated and configured, the server needs to rename a new version to obtain a new version of the project after the process node is updated and configured, and version isolation is added between the new version and the historical version. The invention has flexible development and configuration and low update cost, and can adapt to market demands for quick update configuration and timely respond to supervision demands because the corresponding internet product project has low reconstruction cost.
According to the embodiment of the invention, the project development configuration is flexible and visualized, the code multiplexing rate is high, and the project development efficiency is greatly improved, so that the problem of low project development efficiency caused by inflexibility of project development configuration and no visualization is solved, the configuration flexibility of project development is enhanced by detecting that the configuration update of the flow node is performed to newly add or move dependent services according to project requirements, the service development flow of a project product is quickly and accurately spliced, and the project development efficiency is effectively improved.
The method for configuring the visualized service in the embodiment of the present invention is described above, and the device for configuring the visualized service in the embodiment of the present invention is described below, referring to fig. 3, one embodiment of the device for configuring the visualized service in the embodiment of the present invention includes:
the first setting module 301 is configured to obtain a business process of a project, and set a process node to be developed according to the business process;
a second setting module 302, configured to set a service function to be developed for each flow node;
a third setting module 303, configured to set, for each flow node, a service, a page, and an element to be developed according to a service function;
a fourth setting module 304, configured to set configurable function points to be developed according to services, pages and elements to be developed, where the configurable function points include nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the traversing module 305 is configured to traverse the function tree in the preset library to obtain standard function points corresponding to the configurable function points in the function tree, where the preset library includes a standard node library, a standard component library, a standard page library, and a standard element library, and the standard function points include standard nodes, standard components, standard pages, and standard elements;
The first configuration processing module 306 is configured to perform configuration processing on the flow node on a preset visual console through a preset configuration file and standard function points, where the configuration file is used to instruct editing of the standard function points corresponding to the flow node to conform to the mode and condition of the operation flow of the service product.
The function implementation of each module in the visualized service configuration device corresponds to each step in the visualized service configuration method embodiment, and the function and implementation process of the function implementation are not described in detail herein.
According to the embodiment of the invention, aiming at the flexible configuration scheme of the project, the method adapts to the customized requirements of various Internet product sales scenes, can support the rapid implementation of the project and can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, the flexible and visual development configuration of the project is realized, the code multiplexing rate is high, the project development efficiency is greatly improved, and the problems of inflexibility in project development configuration and low project development efficiency caused by no visualization are solved.
Referring to fig. 4, another embodiment of a visualized service configuration device in an embodiment of the present invention includes:
The first setting module 301 is configured to obtain a business process of a project, and set a process node to be developed according to the business process;
a second setting module 302, configured to set a service function to be developed for each flow node;
a third setting module 303, configured to set, for each flow node, a service, a page, and an element to be developed according to a service function;
a fourth setting module 304, configured to set configurable function points to be developed according to services, pages and elements to be developed, where the configurable function points include nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the traversing module 305 is configured to traverse the function tree in the preset library to obtain standard function points corresponding to the configurable function points in the function tree, where the preset library includes a standard node library, a standard component library, a standard page library, and a standard element library, and the standard function points include standard nodes, standard components, standard pages, and standard elements;
the first configuration processing module 306 is configured to perform configuration processing on the flow node on a preset visual console through a preset configuration file and standard function points, where the configuration file is used to instruct editing of the standard function points corresponding to the flow node to conform to the mode and condition of the operation flow of the service product;
A detection module 307, configured to detect whether a configuration update is being performed on the flow node;
a judging module 308, configured to judge whether the process node is allowed to be added or moved when the configuration update is performed, when it is detected that the process node is performing the configuration update, the dependent service corresponding to the process node before the configuration update is performed;
and the processing module 309 is configured to obtain a flow configuration file of the item if it is determined that the flow node is allowed to be newly added or moved during configuration update by the dependent service corresponding to the flow node before configuration update, and the flow configuration file is used to newly add or move the dependent service according to the flow configuration file, where the flow configuration file includes flow node information of the business flow and an operation sequence of the business flow.
Optionally, the visualized service configuration device further includes:
the creation module is used for respectively creating function trees corresponding to standard nodes, standard components, standard pages and standard elements in the preset library;
the storage module is used for storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, the visualized service configuration device further includes:
the first configuration module is used for configuring dependent services for nodes in the standard node library, wherein the dependent services are used for indicating each flow node of the business product implementation flow;
The second configuration module is used for configuring the dependency relationship for the components in the standard component library, and the components comprise a user interface component, a business logic component, a service component and a database component;
and the definition module is used for carrying out standardized definition on the elements in the standard element library, wherein the elements comprise fields.
Optionally, the visualized service configuration device further includes:
the first acquisition module is used for acquiring a new version of the item after the configuration update of the flow node and acquiring a history version of the item before the configuration update;
and the adding module is used for adding version isolation between the new version and the historical version.
Optionally, the visualized service configuration device further includes:
the monitoring module is used for monitoring whether the operation abnormality and/or the information abnormality exists in the process of carrying out configuration processing on the flow nodes by the visual console;
and the early warning module is used for generating abnormal information and carrying out early warning according to the abnormal information if the visual console is monitored to have operation abnormality and/or information abnormality in the process of carrying out configuration processing on the flow nodes.
Optionally, the visualized service configuration device further includes:
the second acquisition module is used for acquiring development requirements of the project and acquiring a configuration processing process of configuration processing of the flow node to be examined and approved, wherein the development requirements comprise characteristics and functions of the project;
The second configuration processing module is used for setting an approval node in the configuration processing process according to development requirements, and the approval node is used for approval and confirmation of a user.
The function implementation of each module and each unit in the visualized service configuration device corresponds to each step in the visualized service configuration method embodiment, and the functions and implementation processes of the modules and the units are not described in detail herein.
According to the embodiment of the invention, the project development configuration is flexible and visualized, the code multiplexing rate is high, and the project development efficiency is greatly improved, so that the problem of low project development efficiency caused by inflexibility of project development configuration and no visualization is solved, the configuration flexibility of project development is enhanced by detecting that the configuration update of the flow node is performed to newly add or move dependent services according to project requirements, the service development flow of a project product is quickly and accurately spliced, and the project development efficiency is effectively improved.
The service configuration device visualized in the embodiment of the present invention is described in detail from the point of view of the modularized functional entity in fig. 3 and fig. 4, and the service configuration device visualized in the embodiment of the present invention is described in detail from the point of view of hardware processing in the following.
Fig. 5 is a schematic structural diagram of a visual service configuration device according to an embodiment of the present invention, where the visual service configuration device 500 may have a relatively large difference due to configuration or performance, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein the memory 530 and the storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations on the visualized service configuration apparatus 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the visualized service configuration device 500.
The visualized service configuration apparatus 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Server, mac OS X, unix, linux, freeBSD, etc. Those skilled in the art will appreciate that the visualized service configuration device structure shown in fig. 5 does not constitute a limitation of the visualized service configuration device, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the visualized service configuration method.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.